#include <WavAudioIStream.h>
Inheritance diagram for syn::WavAudioIStream:
Public Methods | |
WavAudioIStream () | |
virtual | ~WavAudioIStream () |
void | setName (const std::string &filename) |
set the filename to use. More... | |
virtual bool | open (const syn::AudioFormat &fmt, Operation op=COPY) |
open the stream specify the audio format you would like returned (independant of file attributes). More... | |
virtual bool | isOpen () const |
virtual bool | good () const |
virtual bool | bad () const |
virtual bool | eof () const |
virtual void | read (void *data, unsigned int samples) |
read data out of the stream in the format you specified. More... | |
virtual int | gcount () const |
virtual const AudioFormat& | format () const |
bool | close () |
close the stream... More... | |
int | numsamps () |
maximum number of samples available from read before eof() this number doesn't include channels, i.e. More... | |
void | seek (int sampleNum) |
seek to a sample. More... | |
int | numbytes () |
maximum number of bytes available from read before eof(). More... | |
virtual void | setAmp (float amplitude) |
virtual void | setDcOffset (float off) |
Definition at line 49 of file WavAudioIStream.h.
|
Definition at line 37 of file WavAudioIStream.cpp. |
|
Definition at line 53 of file WavAudioIStream.h. |
|
set the filename to use.
Definition at line 44 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
open the stream specify the audio format you would like returned (independant of file attributes).
Reimplemented from syn::AudioIStream. Referenced by WavImporter::import().
|
|
Reimplemented from syn::AudioIStream. Definition at line 232 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
Reimplemented from syn::AudioIStream. Definition at line 217 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
Reimplemented from syn::AudioIStream. Definition at line 222 of file WavAudioIStream.cpp. |
|
Reimplemented from syn::AudioIStream. Definition at line 227 of file WavAudioIStream.cpp. |
|
read data out of the stream in the format you specified. returns this->gcount(); samples are in terms of [channels * bytes_per_samp] Reimplemented from syn::AudioIStream. Definition at line 141 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
Reimplemented from syn::AudioIStream. Definition at line 237 of file WavAudioIStream.cpp. |
|
Reimplemented from syn::AudioIStream. Definition at line 80 of file WavAudioIStream.h. |
|
close the stream...
Reimplemented from syn::AudioIStream. Definition at line 200 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
maximum number of samples available from read before eof() this number doesn't include channels, i.e. for each channel there is one sample. thus stereo would have more samples than mono for the same length/quality Definition at line 211 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
seek to a sample.
Reimplemented from syn::AudioIStream. Definition at line 245 of file WavAudioIStream.cpp. |
|
maximum number of bytes available from read before eof().
Definition at line 257 of file WavAudioIStream.cpp. Referenced by WavImporter::import().
|
|
Definition at line 103 of file WavAudioIStream.h. |
|
Definition at line 104 of file WavAudioIStream.h. |