|
blip
0.1
|
A container for audio data. More...
#include <AudioClip.hpp>
Public Types | |
| enum | Format { Format_PCM } |
| Supported audio formats. More... | |
Public Member Functions | |
| AudioClip (const AudioFormat &format, uint32_t maxSamples) | |
| Construct a new AudioClip with the given audio format and maximum size. More... | |
| ~AudioClip () | |
| Destructor. More... | |
| const AudioFormat & | getFormat () const |
| Get the audio format. More... | |
| uint32_t | getMaxSamples () const |
| Get the maximum number of audio samples that this AudioClip can hold. More... | |
| uint32_t | getNumSamples () const |
| Get the number of audio samples currently in this AudioClip. More... | |
| void | setNumSamples (uint32_t numSamples) |
| Set the number of audio samples currently in this AudioClip. More... | |
| const byte_t * | getData () const |
| Get a pointer to the audio data. More... | |
| byte_t * | getData () |
| Get a pointer to the audio data. More... | |
| const size_t | getDataLength () const |
| Get the length of the audio data, in bytes. More... | |
| bool | isNull () const |
| Test if the AudioClip is null, that is, an AudioClip with 0 samples. More... | |
| void | clear () |
| Clear the AudioClip. More... | |
A container for audio data.
| enum Format |
| AudioClip | ( | const AudioFormat & | format, |
| uint32_t | maxSamples | ||
| ) |
Construct a new AudioClip with the given audio format and maximum size.
| format | The audio format. |
| maxSamples | The number of audio samples to allocate space for. |
| ~AudioClip | ( | ) |
Destructor.
| void clear | ( | ) |
Clear the AudioClip.
Sets the number of samples to 0.
|
inline |
Get a pointer to the audio data.
|
inline |
Get a pointer to the audio data.
|
inline |
Get the length of the audio data, in bytes.
|
inline |
Get the audio format.
|
inline |
Get the maximum number of audio samples that this AudioClip can hold.
|
inline |
Get the number of audio samples currently in this AudioClip.
| void setNumSamples | ( | uint32_t | numSamples | ) |