audiere::FLACInputStream Class Reference

#include <input_flac.h>

Inheritance diagram for audiere::FLACInputStream:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FLACInputStream ()
 ~FLACInputStream ()
bool initialize (FilePtr file)
void getFormat (int &channel_count, int &sample_rate, SampleFormat &sampleformat)
int doRead (int frame_count, void *samples)
void reset ()
bool isSeekable ()
int getLength ()
void setPosition (int position)
int getPosition ()

Detailed Description

Definition at line 13 of file input_flac.h.


Constructor & Destructor Documentation

audiere::FLACInputStream::FLACInputStream  ) 
 

Definition at line 8 of file input_flac.cpp.

References audiere::SF_S16.

audiere::FLACInputStream::~FLACInputStream  ) 
 

Definition at line 20 of file input_flac.cpp.


Member Function Documentation

int audiere::FLACInputStream::doRead int  frame_count,
void *  samples
[virtual]
 

Implement this method in subclasses.

Implements audiere::BasicSource.

Definition at line 113 of file input_flac.cpp.

References audiere::GetSampleSize(), and audiere::QueueBuffer::getSize().

void audiere::FLACInputStream::getFormat int &  channel_count,
int &  sample_rate,
SampleFormat sampleformat
[virtual]
 

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

Implements audiere::SampleSource.

Definition at line 101 of file input_flac.cpp.

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

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

Reimplemented from audiere::BasicSource.

Definition at line 163 of file input_flac.cpp.

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

Returns the current position within the sample source.

Returns:
current position in frames

Reimplemented from audiere::BasicSource.

Definition at line 177 of file input_flac.cpp.

References audiere::GetSampleSize(), and audiere::QueueBuffer::getSize().

bool audiere::FLACInputStream::initialize FilePtr  file  ) 
 

Definition at line 30 of file input_flac.cpp.

References audiere::BasicSource::read(), SET_CALLBACK, audiere::SF_S16, and audiere::SF_U8.

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

Returns:
true if the stream is seekable, false otherwise

Reimplemented from audiere::BasicSource.

Definition at line 157 of file input_flac.cpp.

void audiere::FLACInputStream::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 148 of file input_flac.cpp.

References audiere::File::BEGIN, and audiere::QueueBuffer::clear().

void audiere::FLACInputStream::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 169 of file input_flac.cpp.


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