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

audiere::SampleBufferImpl Class Reference

Inheritance diagram for audiere::SampleBufferImpl:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 SampleBufferImpl (void *samples, int frame_count, int channel_count, int sample_rate, SampleFormat sample_format)
 ~SampleBufferImpl ()
void ADR_CALL getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format)
int ADR_CALL getLength ()
const void *ADR_CALL getSamples ()
SampleSource *ADR_CALL openStream ()

Constructor & Destructor Documentation

audiere::SampleBufferImpl::SampleBufferImpl void *    samples,
int    frame_count,
int    channel_count,
int    sample_rate,
SampleFormat    sample_format
[inline]
 

Definition at line 68 of file sample_buffer.cpp.

References audiere::channel_count, audiere::frame_count, audiere::GetSampleSize(), audiere::hidden::sample_format, audiere::sample_rate, audiere::SampleFormat, and audiere::u8.

audiere::SampleBufferImpl::~SampleBufferImpl   [inline]
 

Definition at line 87 of file sample_buffer.cpp.


Member Function Documentation

void ADR_CALL audiere::SampleBufferImpl::getFormat int &    channel_count,
int &    sample_rate,
SampleFormat   sample_format
[inline, virtual]
 

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

See also:
SampleSource::getFormat

Implements audiere::SampleBuffer.

Definition at line 91 of file sample_buffer.cpp.

References ADR_CALL, audiere::channel_count, audiere::hidden::sample_format, audiere::sample_rate, and audiere::SampleFormat.

int ADR_CALL audiere::SampleBufferImpl::getLength   [inline, virtual]
 

Get the length of the sample buffer in frames.

Implements audiere::SampleBuffer.

Definition at line 101 of file sample_buffer.cpp.

References ADR_CALL.

const void* ADR_CALL audiere::SampleBufferImpl::getSamples   [inline, virtual]
 

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

Implements audiere::SampleBuffer.

Definition at line 105 of file sample_buffer.cpp.

References ADR_CALL.

SampleSource* ADR_CALL audiere::SampleBufferImpl::openStream   [inline, virtual]
 

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

Implements audiere::SampleBuffer.

Definition at line 109 of file sample_buffer.cpp.

References ADR_CALL.


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