MPD: CheckAudioFormat.hxx File Reference

MPD 0.20.18

Functions
CheckAudioFormat.hxx File Reference
`#include "AudioFormat.hxx"`
Include dependency graph for CheckAudioFormat.hxx:

Go to the source code of this file.

## Functions
void | CheckSampleRate (unsigned long sample_rate)
void | CheckSampleFormat (SampleFormat sample_format)
void | CheckChannelCount (unsigned sample_format)
AudioFormat | CheckAudioFormat (unsigned long sample_rate, SampleFormat sample_format, unsigned channels)
| Check AudioFormat attributes and construct an AudioFormat instance. More...

## Function Documentation

## ◆ CheckAudioFormat()

AudioFormat CheckAudioFormat | ( | unsigned long | sample_rate,
|  | SampleFormat | sample_format,
|  | unsigned | channels
| ) |  |

Check AudioFormat attributes and construct an AudioFormat instance.

Throws #std::runtime_error on error.

## ◆ CheckChannelCount()

void CheckChannelCount | ( | unsigned | sample_format | ) |

## ◆ CheckSampleFormat()

void CheckSampleFormat | ( | SampleFormat | sample_format | ) |

## ◆ CheckSampleRate()

void CheckSampleRate | ( | unsigned long | sample_rate | ) |