Audio format.
More...
◆ AudioFormat() [1/2]
| constexpr SDL::AudioFormat::AudioFormat |
( |
AudioFormatRaw |
audioFormat = {} | ) |
|
|
inlineconstexpr |
- Parameters
-
| audioFormat | the value to be wrapped |
◆ AudioFormat() [2/2]
| constexpr SDL::AudioFormat::AudioFormat |
( |
bool |
sign, |
|
|
bool |
bigendian, |
|
|
bool |
flt, |
|
|
Uint16 |
size |
|
) |
| |
|
inlineconstexpr |
SDL does not support custom audio formats, so this macro is not of much use externally, but it can be illustrative as to what the various bits of an AudioFormat mean.
For example, AUDIO_S32LE looks like this:
- Parameters
-
| sign | 1 for signed data, 0 for unsigned data. |
| bigendian | 1 for bigendian data, 0 for littleendian data. |
| flt | 1 for floating point data, 0 for integer data. |
| size | number of bits per sample. |
- Postcondition
- a format value in the style of AudioFormat.
- Thread safety:
- It is safe to call this macro from any thread.
- Since
- This macro is available since SDL 3.2.0.
◆ operator AudioFormatRaw()
- Returns
- the underlying AudioFormatRaw.
The documentation for this class was generated from the following file: