The IBuffer audio object interface.
More...
#include "murl_audio_i_buffer.h"
Inherited by Murl::Audio::Al11::Buffer, and Murl::Audio::Dummy::Buffer.
The IBuffer audio object interface.
This interface represents an audio sample buffer with typical properties such as sample format and sample rate.
Used internally by Graph::AudioSource and Graph::AudioSequence.
◆ GetObjectInterface() [1/2]
virtual IObject* Murl::Audio::IBuffer::GetObjectInterface |
( |
| ) |
|
|
pure virtual |
◆ GetObjectInterface() [2/2]
virtual const IObject* Murl::Audio::IBuffer::GetObjectInterface |
( |
| ) |
const |
|
pure virtual |
◆ SetType()
Set the buffer type (stream or static).
- Parameters
-
- Returns
- true if successful.
◆ GetType()
Get the buffer type.
- Returns
- The buffer type.
◆ SetAccessMode()
Set the access mode hint (read only or read/write).
- Parameters
-
- Returns
- true if successful.
◆ GetAccessMode()
Get the access mode hint.
- Returns
- The access mode.
◆ SetSampleFormat()
Set the desired output sample format.
- Parameters
-
- Returns
- true if successful.
◆ GetSampleFormat()
Get the output sample format.
- Returns
- The sample format.
◆ SetSampleRate()
virtual Bool Murl::Audio::IBuffer::SetSampleRate |
( |
UInt32 |
sampleRate | ) |
|
|
pure virtual |
Set the desired output sample rate.
- Parameters
-
sampleRate | The sample rate in Hertz. |
- Returns
- true if successful.
◆ GetSampleRate()
virtual UInt32 Murl::Audio::IBuffer::GetSampleRate |
( |
| ) |
const |
|
pure virtual |
Get the output sample rate.
- Returns
- The sample rate in Hertz.
◆ SetNumberOfSamples()
virtual Bool Murl::Audio::IBuffer::SetNumberOfSamples |
( |
UInt32 |
numberOfSamples | ) |
|
|
pure virtual |
Set the total number of samples.
- Parameters
-
numberOfSamples | The number of samples. |
- Returns
- true if successful.
◆ GetNumberOfSamples()
virtual UInt32 Murl::Audio::IBuffer::GetNumberOfSamples |
( |
| ) |
const |
|
pure virtual |
Get the total number of samples.
- Returns
- The number of samples.
◆ SetAudioStream()
Set the audio stream source.
- Parameters
-
- Returns
- true if successful.
◆ GetAudioStream()
virtual IAudioStream* Murl::Audio::IBuffer::GetAudioStream |
( |
| ) |
const |
|
pure virtual |
Get the audio stream source.
- Returns
- The audio stream.
The documentation for this interface was generated from the following file: