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

syn::RawAudioOStream Class Reference

Output stream for writting a .raw audio file... More...

#include <RawAudioOStream.h>

Inheritance diagram for syn::RawAudioOStream:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 RawAudioOStream ()
virtual ~RawAudioOStream ()
void setName (const std::string &name)
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 ()
 is the stream open? More...

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

bool write (const void *const 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...

virtual void flush ()

Detailed Description

Output stream for writting a .raw audio file...

simply write the raw stream data directly to the file with no header. many audio editors can open this simple format.

Definition at line 49 of file RawAudioOStream.h.


Constructor & Destructor Documentation

syn::RawAudioOStream::RawAudioOStream ( ) [inline]
 

Definition at line 52 of file RawAudioOStream.h.

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

Definition at line 56 of file RawAudioOStream.h.


Member Function Documentation

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

Definition at line 58 of file RawAudioOStream.h.

bool syn::RawAudioOStream::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 75 of file RawAudioOStream.h.

Referenced by setName().

bool syn::RawAudioOStream::isOpen ( ) [inline, virtual]
 

is the stream open?

Reimplemented from syn::AudioOStream.

Definition at line 89 of file RawAudioOStream.h.

bool syn::RawAudioOStream::canAcceptMoreData ( ) const [inline, virtual]
 

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

Reimplemented from syn::AudioOStream.

Definition at line 92 of file RawAudioOStream.h.

bool syn::RawAudioOStream::write ( const void *const data,
int samples ) [inline, virtual]
 

write samples to the audio stream.

Reimplemented from syn::AudioOStream.

Definition at line 100 of file RawAudioOStream.h.

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

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

Reimplemented from syn::AudioOStream.

Definition at line 112 of file RawAudioOStream.h.

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

close the stream...

Reimplemented from syn::AudioOStream.

Definition at line 115 of file RawAudioOStream.h.

Referenced by setName().

void syn::RawAudioOStream::flush ( ) [inline, virtual]
 

Reimplemented from syn::AudioOStream.

Definition at line 127 of file RawAudioOStream.h.


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