Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

syn::WavAudioOStream Class Reference

Output stream for writting .wav files... More...

#include <WavAudioOStream.h>

Inheritance diagram for syn::WavAudioOStream:

Inheritance graph
[legend]
Collaboration diagram for syn::WavAudioOStream:

Collaboration graph
[legend]
List of all members.

Public Methods

 WavAudioOStream ()
virtual ~WavAudioOStream ()
void setName (const std::string &name)
 specify the file name to be used when you open() the stream. More...

bool open (const syn::AudioFormat &fmt)
 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...

bool canAcceptMoreData ()
 poll this function to know when to give more data to update. More...

bool write (char *data, int samples)
 write samples to the audio stream. More...

virtual int pcount () const
 get the put count == the number of samples last written by write(). More...

bool close ()
 close the stream... More...


Detailed Description

Output stream for writting .wav files...

TODO: test this... (not complete)

Definition at line 45 of file WavAudioOStream.h.


Constructor & Destructor Documentation

syn::WavAudioOStream::WavAudioOStream ( ) [inline]
 

Definition at line 48 of file WavAudioOStream.h.

syn::WavAudioOStream::~WavAudioOStream ( ) [inline, virtual]
 

Definition at line 52 of file WavAudioOStream.h.


Member Function Documentation

void syn::WavAudioOStream::setName ( const std::string & name ) [inline]
 

specify the file name to be used when you open() the stream.

Definition at line 55 of file WavAudioOStream.h.

bool syn::WavAudioOStream::open ( const syn::AudioFormat & fmt ) [inline, virtual]
 

open the stream specify the format of your data you'll be passing to write().

Reimplemented from syn::AudioOStream.

Definition at line 72 of file WavAudioOStream.h.

Referenced by setName().

bool syn::WavAudioOStream::isOpen ( ) [pure virtual]
 

is the stream open?

Reimplemented from syn::AudioOStream.

bool syn::WavAudioOStream::canAcceptMoreData ( ) [inline]
 

poll this function to know when to give more data to update.

Definition at line 90 of file WavAudioOStream.h.

bool syn::WavAudioOStream::write ( char * data,
int samples ) [inline]
 

write samples to the audio stream.

Definition at line 100 of file WavAudioOStream.h.

int syn::WavAudioOStream::pcount ( ) const [inline, virtual]
 

get the put count == the number of samples last written by write().

Reimplemented from syn::AudioOStream.

Definition at line 111 of file WavAudioOStream.h.

bool syn::WavAudioOStream::close ( ) [inline, virtual]
 

close the stream...

Reimplemented from syn::AudioOStream.

Definition at line 114 of file WavAudioOStream.h.

Referenced by setName().


The documentation for this class was generated from the following file:
Generated at Mon Apr 15 09:28:10 2002 for subsynth by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001