#include "Compiler.h"
#include <stdint.h>
Go to the source code of this file.
Enumerator |
---|
UNDEFINED |
|
S8 |
|
S16 |
|
S24_P32 |
Signed 24 bit integer samples, packed in 32 bit integers (the most significant byte is filled with the sign bit).
|
S32 |
|
FLOAT |
32 bit floating point samples in the host's format.
The range is -1.0f to +1.0f.
|
DSD |
Direct Stream Digital.
1-bit samples; each frame has one byte (8 samples) per channel.
|
Definition at line 33 of file SampleFormat.hxx.
static constexpr bool audio_valid_sample_format |
( |
SampleFormat |
format | ) |
|
|
inlinestatic |
Checks whether the sample format is valid.
Definition at line 71 of file SampleFormat.hxx.
static constexpr unsigned sample_format_size |
( |
SampleFormat |
format | ) |
|
|
inlinestatic |
Renders a SampleFormat enum into a string, e.g.
for printing it in a log file.
- Parameters
-
- Returns
- the string