#include "pcm/SampleFormat.hxx"
#include "Compiler.h"
#include <assert.h>
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
static constexpr bool audio_valid_channel_count |
( |
unsigned |
channels | ) |
|
|
inlinestatic |
Checks whether the number of channels is valid.
Definition at line 168 of file AudioFormat.hxx.
static constexpr bool audio_valid_sample_rate |
( |
unsigned |
sample_rate | ) |
|
|
inlinestatic |
Checks whether the sample rate is valid.
- Parameters
-
sample_rate | the sample rate in Hz |
Definition at line 159 of file AudioFormat.hxx.
Renders the AudioFormat object into a string, e.g.
for printing it in a log file.
- Parameters
-
- Returns
- the string buffer
constexpr unsigned MAX_CHANNELS = 8 |
|
static |