audiere::AIFFInputStream Class Reference

#include <input_aiff.h>

Inheritance diagram for audiere::AIFFInputStream:

Inheritance graph
[legend]
Collaboration diagram for audiere::AIFFInputStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AIFFInputStream ()
bool initialize (FilePtr file)
void getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format)
int doRead (int frame_count, void *buffer)
void reset ()
bool isSeekable ()
int getLength ()
void setPosition (int position)
int getPosition ()

Detailed Description

Definition at line 12 of file input_aiff.h.


Constructor & Destructor Documentation

audiere::AIFFInputStream::AIFFInputStream  ) 
 

Definition at line 19 of file input_aiff.cpp.

References audiere::SF_U8.


Member Function Documentation

int audiere::AIFFInputStream::doRead int  frame_count,
void *  buffer
[virtual]
 

Implement this method in subclasses.

Implements audiere::BasicSource.

Definition at line 78 of file input_aiff.cpp.

References audiere::GetSampleSize(), audiere::BasicSource::read(), and audiere::SF_S16.

void audiere::AIFFInputStream::getFormat int &  channel_count,
int &  sample_rate,
SampleFormat sample_format
[virtual]
 

Retrieve the number of channels, sample rate, and sample format of the sample source.

Implements audiere::SampleSource.

Definition at line 66 of file input_aiff.cpp.

int audiere::AIFFInputStream::getLength  )  [virtual]
 

Returns:
number of frames in the stream, or 0 if the stream is not seekable

Reimplemented from audiere::BasicSource.

Definition at line 129 of file input_aiff.cpp.

int audiere::AIFFInputStream::getPosition  )  [virtual]
 

Returns the current position within the sample source.

Returns:
current position in frames

Reimplemented from audiere::BasicSource.

Definition at line 143 of file input_aiff.cpp.

bool audiere::AIFFInputStream::initialize FilePtr  file  ) 
 

Todo:
this really should be replaced with a factory function

Definition at line 35 of file input_aiff.cpp.

References ADR_GUARD, and ADR_LOG.

bool audiere::AIFFInputStream::isSeekable  )  [virtual]
 

Returns:
true if the stream is seekable, false otherwise

Reimplemented from audiere::BasicSource.

Definition at line 123 of file input_aiff.cpp.

void audiere::AIFFInputStream::reset  )  [virtual]
 

Reset the sample source. This has the same effect as setPosition(0) on a seekable source. On an unseekable source, it resets all internal state to the way it was when the source was first created.

Implements audiere::SampleSource.

Definition at line 113 of file input_aiff.cpp.

References ADR_LOG, and audiere::File::BEGIN.

void audiere::AIFFInputStream::setPosition int  position  )  [virtual]
 

Sets the current position within the sample source. If the stream is not seekable, this method does nothing.

Parameters:
position current position in frames

Reimplemented from audiere::BasicSource.

Definition at line 135 of file input_aiff.cpp.

References audiere::File::BEGIN, and audiere::GetSampleSize().


The documentation for this class was generated from the following files:
Generated on Mon Feb 13 23:09:15 2006 for audiere by  doxygen 1.4.6