MPD
0.20.6
|
Parser functions for audio related objects. More...
#include "Compiler.h"
Go to the source code of this file.
Functions | |
gcc_pure AudioFormat | ParseAudioFormat (const char *src, bool mask) |
Parses a string in the form "SAMPLE_RATE:BITS:CHANNELS" into an AudioFormat. More... | |
Parser functions for audio related objects.
Definition in file AudioParser.hxx.
gcc_pure AudioFormat ParseAudioFormat | ( | const char * | src, |
bool | mask | ||
) |
Parses a string in the form "SAMPLE_RATE:BITS:CHANNELS" into an AudioFormat.
Throws #std::runtime_error on error.
src | the input string |
mask | if true, then "*" is allowed for any number of items |