Murl::Resource::IAudio Interface Referenceabstract
The IAudio resource object interface. More...
#include "murl_resource_i_audio.h"
Inheritance diagram for Murl::Resource::IAudio:
Classes | |
struct | Iff |
IFF file specific structs. More... | |
Public Member Functions | |
virtual IObject * | GetObjectInterface ()=0 |
Get the mutable Resource::IObject interface. More... | |
virtual const IObject * | GetObjectInterface () const =0 |
Get the constant Resource::IObject interface. More... | |
virtual UInt32 | GetNumberOfStreams () const =0 |
Get the number of individual audio streams. More... | |
virtual UInt32 | GetSampleRate (UInt32 streamIndex) const =0 |
Get the audio stream's sample rate. More... | |
virtual UInt32 | GetNumberOfSamples (UInt32 streamIndex) const =0 |
Get the audio stream's total number of samples. More... | |
virtual IEnums::SampleFormat | GetSampleFormat (UInt32 streamIndex) const =0 |
Get the audio stream's original (preferred) sample format. More... | |
virtual IEnums::AudioStreamFormat | GetAudioStreamFormat (UInt32 streamIndex) const =0 |
Get the audio stream's actual format. More... | |
virtual IAudioStream * | CreateStream (UInt32 streamIndex) const =0 |
Create an IAudioStream object from the resource, with default sample format. More... | |
virtual IAudioStream * | CreateStream (UInt32 streamIndex, IEnums::SampleFormat sampleFormat) const =0 |
Create an IAudioStream object from the resource, with given sample format. More... | |
Detailed Description
The IAudio resource object interface.
Member Function Documentation
◆ GetObjectInterface() [1/2]
|
pure virtual |
Get the mutable Resource::IObject interface.
- Returns
- The IObject interface.
◆ GetObjectInterface() [2/2]
|
pure virtual |
Get the constant Resource::IObject interface.
- Returns
- The IObject interface.
◆ GetNumberOfStreams()
|
pure virtual |
Get the number of individual audio streams.
- Returns
- The number of streams.
◆ GetSampleRate()
Get the audio stream's sample rate.
- Parameters
-
streamIndex The index of the stream, from 0 to GetNumberOfStreams()-1.
- Returns
- The sample rate in Hertz.
◆ GetNumberOfSamples()
Get the audio stream's total number of samples.
- Parameters
-
streamIndex The index of the stream, from 0 to GetNumberOfStreams()-1.
- Returns
- The number of samples.
◆ GetSampleFormat()
|
pure virtual |
Get the audio stream's original (preferred) sample format.
- Parameters
-
streamIndex The index of the stream, from 0 to GetNumberOfStreams()-1.
- Returns
- The sample format.
◆ GetAudioStreamFormat()
|
pure virtual |
Get the audio stream's actual format.
- Parameters
-
streamIndex The index of the stream, from 0 to GetNumberOfStreams()-1.
- Returns
- The stream format.
◆ CreateStream() [1/2]
|
pure virtual |
Create an IAudioStream object from the resource, with default sample format.
- Parameters
-
streamIndex The index of the stream, from 0 to GetNumberOfStreams()-1.
- Returns
- The newly created stream object, or null if failed.
◆ CreateStream() [2/2]
|
pure virtual |
Create an IAudioStream object from the resource, with given sample format.
- Parameters
-
streamIndex The index of the stream, from 0 to GetNumberOfStreams()-1. sampleFormat The desired output sample format.
- Returns
- The newly created stream object, or null if failed.
The documentation for this interface was generated from the following file:
- murl_resource_i_audio.h