#include <SampleBufferIStream.h>
Inheritance diagram for syn::SampleBufferIStream:
Public Methods | |
SampleBufferIStream () | |
virtual | ~SampleBufferIStream () |
void | setSampleBuf (const void *buf, unsigned int size, const syn::AudioFormat &fmt) |
set the data ptr that this stream will read from. 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 void | read (void *data, unsigned int samples) |
read data out of the stream in the format you specified. More... | |
virtual bool | close () |
close the stream... More... | |
virtual bool | isOpen () const |
virtual bool | eof () const |
virtual bool | good () const |
virtual bool | bad () const |
virtual int | gcount () const |
returns num samples actually read by the last read() samples are in terms of [channels * bytes_per_samp]. More... | |
virtual const AudioFormat& | format () const |
|
Definition at line 43 of file SampleBufferIStream.h. |
|
Definition at line 47 of file SampleBufferIStream.h. |
|
set the data ptr that this stream will read from. be careful to not delete it before you use this stream this stream will not own, or delete this memory for you. Definition at line 53 of file SampleBufferIStream.h. |
|
open the stream specify the audio format you would like returned (independant of file attributes).
Reimplemented from syn::AudioIStream. Definition at line 65 of file SampleBufferIStream.h. |
|
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 77 of file SampleBufferIStream.h. |
|
close the stream...
Reimplemented from syn::AudioIStream. Definition at line 116 of file SampleBufferIStream.h. |
|
Reimplemented from syn::AudioIStream. Definition at line 122 of file SampleBufferIStream.h. |
|
Reimplemented from syn::AudioIStream. Definition at line 123 of file SampleBufferIStream.h. |
|
Reimplemented from syn::AudioIStream. Definition at line 124 of file SampleBufferIStream.h. |
|
Reimplemented from syn::AudioIStream. Definition at line 125 of file SampleBufferIStream.h. |
|
returns num samples actually read by the last read() samples are in terms of [channels * bytes_per_samp].
Reimplemented from syn::AudioIStream. Definition at line 130 of file SampleBufferIStream.h. |
|
Reimplemented from syn::AudioIStream. Definition at line 135 of file SampleBufferIStream.h. |