Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

audiere::MODInputStream Class Reference

#include <input_mod.h>

Inheritance diagram for audiere::MODInputStream:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 MODInputStream ()
 ~MODInputStream ()
bool initialize (File *file)
void ADR_CALL getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format)
int ADR_CALL read (int frame_count, void *buffer)
void ADR_CALL reset ()

Constructor & Destructor Documentation

audiere::MODInputStream::MODInputStream  
 

Definition at line 78 of file input_mod.cpp.

audiere::MODInputStream::~MODInputStream  
 

Definition at line 92 of file input_mod.cpp.


Member Function Documentation

void audiere::MODInputStream::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 204 of file input_mod.cpp.

References audiere::hidden::sample_format, audiere::SampleFormat, and audiere::SF_S16.

bool audiere::MODInputStream::initialize File   file
 

Definition at line 106 of file input_mod.cpp.

References ADR_GUARD, and ADR_LOG.

int audiere::MODInputStream::read int    frame_count,
void *    buffer
[virtual]
 

Read frame_count samples into buffer. buffer must be at least |frame_count * GetSampleSize(format) * channel_count| bytes long.

Parameters:
frame_count  number of frames to read
buffer  buffer to store samples in
Returns :
number of frames actually read

Implements audiere::SampleSource.

Definition at line 216 of file input_mod.cpp.

References ADR_GUARD, and audiere::u32.

void audiere::MODInputStream::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 254 of file input_mod.cpp.

References ADR_GUARD.


The documentation for this class was generated from the following files:
Generated on Sat Oct 12 01:44:06 2002 for audiere by doxygen1.2.17