MPD: AudioParser.hxx File Reference

MPD 0.20.15

Functions
AudioParser.hxx File Reference

Parser functions for audio related objects. More...

Go to the source code of this file.

## Functions
AudioFormat | ParseAudioFormat (const char *src, bool mask)
| Parses a string in the form "SAMPLE_RATE:BITS:CHANNELS" into an AudioFormat. More...

## Detailed Description

Parser functions for audio related objects.

Definition in file AudioParser.hxx.

## Function Documentation

## ◆ ParseAudioFormat()

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.

Parameters

  src | the input string
  mask | if true, then "*" is allowed for any number of items