#include <AudioInputStream.h>


Public Member Functions | |
| AudioInputStream (unsigned long selectedChannel) | |
| virtual void | reset ()=0 |
| virtual | ~AudioInputStream () |
| virtual bool | readFrame (AudioFrame &f)=0 |
| virtual void | seekFrame (unsigned long n)=0 |
| virtual unsigned long | getFrameCount ()=0 |
| virtual unsigned long | getChannelCount ()=0 |
| virtual unsigned long | getSampleBytes ()=0 |
| virtual double | getFrameRate ()=0 |
| virtual unsigned long | getSelectedChannel () const |
| virtual void | setSelectedChannel (unsigned long c) |
| virtual void | close ()=0 |
| virtual unsigned long | getSourceCount ()=0 |
Protected Attributes | |
| unsigned long | _selectedChannel |
Friends | |
| class | TestAudioFileReader |
This class is the abstract class for audio data stream.
Definition at line 81 of file AudioInputStream.h.
| alize::AudioInputStream::AudioInputStream | ( | unsigned long | selectedChannel ) | [explicit] |
| virtual alize::AudioInputStream::~AudioInputStream | ( | ) | [virtual] |
| virtual void alize::AudioInputStream::close | ( | ) | [pure virtual] |
Closes the stream
Implemented in alize::AudioFileReader.
| virtual unsigned long alize::AudioInputStream::getChannelCount | ( | ) | [pure virtual] |
Returns the channel count of the file
Implemented in alize::AudioFileReader.
| virtual unsigned long alize::AudioInputStream::getFrameCount | ( | ) | [pure virtual] |
Returns the frame count of the file
Implemented in alize::AudioFileReader.
| virtual double alize::AudioInputStream::getFrameRate | ( | ) | [pure virtual] |
| virtual unsigned long alize::AudioInputStream::getSampleBytes | ( | ) | [pure virtual] |
Returns the size of a sample (for one channel) : 8, 16...
Implemented in alize::AudioFileReader.
| virtual unsigned long alize::AudioInputStream::getSelectedChannel | ( | ) | const [virtual] |
Returns the selected channel number
Referenced by alize::AudioFileReader::toString().
| virtual unsigned long alize::AudioInputStream::getSourceCount | ( | ) | [pure virtual] |
Implemented in alize::AudioFileReader.
| virtual bool alize::AudioInputStream::readFrame | ( | AudioFrame & | f ) | [pure virtual] |
Reads the next available audio frame
Reads a unique channel. See method setSelectedChannel(...) to choose a channel
| f | the audio frame object to store the data |
| IOException | if an I/O error occurs |
Implemented in alize::AudioFileReader.
| virtual void alize::AudioInputStream::reset | ( | ) | [pure virtual] |
Resets the stream
Implemented in alize::AudioFileReader.
| virtual void alize::AudioInputStream::seekFrame | ( | unsigned long | n ) | [pure virtual] |
Sets the position indicator associated with the stream to a new position. Does not throw any exception or error if the position exceeds file length
| pos | position of the next frame to read |
Implemented in alize::AudioFileReader.
| virtual void alize::AudioInputStream::setSelectedChannel | ( | unsigned long | c ) | [virtual] |
Sets the channel to read
| c | the channel number |
friend class TestAudioFileReader [friend] |
Reimplemented in alize::AudioFileReader.
Definition at line 83 of file AudioInputStream.h.
unsigned long alize::AudioInputStream::_selectedChannel [protected] |
Definition at line 150 of file AudioInputStream.h.
1.7.2