#include <AudioOStream.h>
Inheritance diagram for syn::AudioOStream:
Public Methods | |
virtual | ~AudioOStream () |
virtual bool | open (const syn::AudioFormat &destfmt)=0 |
open the stream specify the format of your data you'll be passing to write(). More... | |
virtual bool | isOpen ()=0 |
is the stream open? More... | |
virtual bool | canAcceptMoreData () const=0 |
poll this function to know when to give more data to update. More... | |
virtual bool | write (const void *const data, int samples)=0 |
write samples to the audio stream. More... | |
virtual int | pcount () const=0 |
get the put count == the number of samples last written by write(). More... | |
virtual bool | close ()=0 |
close the stream... More... | |
virtual void | flush ()=0 |
examples of targets can be audio apis, network streams, audio files like wav or aiff, ...
Definition at line 44 of file AudioOStream.h.
|
Definition at line 47 of file AudioOStream.h. |
|
open the stream specify the format of your data you'll be passing to write().
Reimplemented in syn::OpenALAudioOStream, syn::RawAudioOStream, and syn::WavAudioOStream. |
|
is the stream open?
Reimplemented in syn::OpenALAudioOStream, syn::RawAudioOStream, and syn::WavAudioOStream. |
|
poll this function to know when to give more data to update.
Reimplemented in syn::OpenALAudioOStream, and syn::RawAudioOStream. |
|
write samples to the audio stream.
Reimplemented in syn::RawAudioOStream. |
|
get the put count == the number of samples last written by write().
Reimplemented in syn::OpenALAudioOStream, syn::RawAudioOStream, and syn::WavAudioOStream. |
|
close the stream...
Reimplemented in syn::OpenALAudioOStream, syn::RawAudioOStream, and syn::WavAudioOStream. |
|
Reimplemented in syn::OpenALAudioOStream, and syn::RawAudioOStream. |