|
MPD
0.20.18
|
A class that converts samples from one format to another. More...
#include <ChannelsConverter.hxx>
Public Member Functions | |
| PcmChannelsConverter () | |
| ~PcmChannelsConverter () | |
| void | Open (SampleFormat format, unsigned src_channels, unsigned dest_channels) |
| Opens the object, prepare for Convert(). More... | |
| void | Close () |
| Closes the object. More... | |
| gcc_pure ConstBuffer< void > | Convert (ConstBuffer< void > src) noexcept |
| Convert a block of PCM data. More... | |
A class that converts samples from one format to another.
Definition at line 36 of file ChannelsConverter.hxx.
|
inline |
Definition at line 44 of file ChannelsConverter.hxx.
|
inline |
Definition at line 47 of file ChannelsConverter.hxx.
| void PcmChannelsConverter::Close | ( | ) |
Closes the object.
After that, you may call Open() again.
|
noexcept |
Convert a block of PCM data.
Throws std::runtime_error on error.
| src | the input buffer |
| void PcmChannelsConverter::Open | ( | SampleFormat | format, |
| unsigned | src_channels, | ||
| unsigned | dest_channels | ||
| ) |
Opens the object, prepare for Convert().
Throws std::runtime_error on error.
| format | the sample format |
| src_channels | the number of source channels |
| dest_channels | the number of destination channels |
1.8.14