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

syn::WavAudioIStream Class Reference

stream for .wav files. More...

#include <WavAudioIStream.h>

Inheritance diagram for syn::WavAudioIStream:

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

Collaboration graph
[legend]
List of all members.

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 AudioFormatformat () 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)

Detailed Description

stream for .wav files.

Definition at line 49 of file WavAudioIStream.h.


Constructor & Destructor Documentation

syn::WavAudioIStream::WavAudioIStream ( )
 

Definition at line 37 of file WavAudioIStream.cpp.

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

Definition at line 53 of file WavAudioIStream.h.


Member Function Documentation

void syn::WavAudioIStream::setName ( const std::string & filename )
 

set the filename to use.

Definition at line 44 of file WavAudioIStream.cpp.

Referenced by WavImporter::import().

bool syn::WavAudioIStream::open ( const syn::AudioFormat & fmt,
Operation op = COPY ) [virtual]
 

open the stream specify the audio format you would like returned (independant of file attributes).

Reimplemented from syn::AudioIStream.

Referenced by WavImporter::import().

bool syn::WavAudioIStream::isOpen ( ) const [virtual]
 

Reimplemented from syn::AudioIStream.

Definition at line 232 of file WavAudioIStream.cpp.

Referenced by WavImporter::import().

bool syn::WavAudioIStream::good ( ) const [virtual]
 

Reimplemented from syn::AudioIStream.

Definition at line 217 of file WavAudioIStream.cpp.

Referenced by WavImporter::import().

bool syn::WavAudioIStream::bad ( ) const [virtual]
 

Reimplemented from syn::AudioIStream.

Definition at line 222 of file WavAudioIStream.cpp.

bool syn::WavAudioIStream::eof ( ) const [virtual]
 

Reimplemented from syn::AudioIStream.

Definition at line 227 of file WavAudioIStream.cpp.

void syn::WavAudioIStream::read ( void * data,
unsigned int samples ) [virtual]
 

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().

int syn::WavAudioIStream::gcount ( ) const [virtual]
 

Reimplemented from syn::AudioIStream.

Definition at line 237 of file WavAudioIStream.cpp.

const AudioFormat & syn::WavAudioIStream::format ( ) const [inline, virtual]
 

Reimplemented from syn::AudioIStream.

Definition at line 80 of file WavAudioIStream.h.

bool syn::WavAudioIStream::close ( ) [virtual]
 

close the stream...

Reimplemented from syn::AudioIStream.

Definition at line 200 of file WavAudioIStream.cpp.

Referenced by WavImporter::import().

int syn::WavAudioIStream::numsamps ( )
 

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().

void syn::WavAudioIStream::seek ( int sampleNum ) [virtual]
 

seek to a sample.

Reimplemented from syn::AudioIStream.

Definition at line 245 of file WavAudioIStream.cpp.

int syn::WavAudioIStream::numbytes ( )
 

maximum number of bytes available from read before eof().

Definition at line 257 of file WavAudioIStream.cpp.

Referenced by WavImporter::import().

void syn::WavAudioIStream::setAmp ( float amplitude ) [inline, virtual]
 

Definition at line 103 of file WavAudioIStream.h.

void syn::WavAudioIStream::setDcOffset ( float off ) [inline, virtual]
 

Definition at line 104 of file WavAudioIStream.h.


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