audiere::SampleBuffer Class Reference

#include <audiere.h>

List of all members.

Public Member Functions

virtual void ADR_CALL getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format)=0
virtual int ADR_CALL getLength ()=0
virtual const void *ADR_CALL getSamples ()=0
virtual SampleSource *ADR_CALL openStream ()=0


Detailed Description

A readonly sample container which can open sample streams as iterators through the buffer. This is commonly used in cases where a very large sound effect is loaded once into memory and then streamed several times to the audio device. This is more efficient memory-wise than loading the effect multiple times.

See also:
CreateSampleBuffer


Member Function Documentation

virtual void ADR_CALL audiere::SampleBuffer::getFormat int &  channel_count,
int &  sample_rate,
SampleFormat &  sample_format
[pure virtual]
 

Return the format of the sample data in the sample buffer.

See also:
SampleSource::getFormat

virtual int ADR_CALL audiere::SampleBuffer::getLength  )  [pure virtual]
 

Get the length of the sample buffer in frames.

virtual const void* ADR_CALL audiere::SampleBuffer::getSamples  )  [pure virtual]
 

Get a readonly pointer to the samples contained within the buffer. The buffer is |channel_count * frame_count * GetSampleSize(sample_format)| bytes long.

virtual SampleSource* ADR_CALL audiere::SampleBuffer::openStream  )  [pure virtual]
 

Open a seekable sample source using the samples contained in the buffer.


The documentation for this class was generated from the following file:
Generated on Tue Feb 14 13:48:45 2006 for Twgui by  doxygen 1.4.6-NO