MPD
0.20.18
|
This object is statically allocated (within another struct), and holds buffer allocations and the state for all kinds of PCM conversions. More...
#include <PcmConvert.hxx>
Public Member Functions | |
PcmConvert () | |
~PcmConvert () | |
void | Open (AudioFormat _src_format, AudioFormat _dest_format) |
Prepare the object. More... | |
void | Close () |
Close the object after it was prepared with Open(). More... | |
void | Reset () |
Reset the filter's state, e.g. More... | |
ConstBuffer< void > | Convert (ConstBuffer< void > src) |
Converts PCM data between two audio formats. More... | |
This object is statically allocated (within another struct), and holds buffer allocations and the state for all kinds of PCM conversions.
Definition at line 40 of file PcmConvert.hxx.
PcmConvert::PcmConvert | ( | ) |
PcmConvert::~PcmConvert | ( | ) |
void PcmConvert::Close | ( | ) |
ConstBuffer<void> PcmConvert::Convert | ( | ConstBuffer< void > | src | ) |
Converts PCM data between two audio formats.
Throws std::runtime_error on error.
src | the source PCM buffer |
void PcmConvert::Open | ( | AudioFormat | _src_format, |
AudioFormat | _dest_format | ||
) |
void PcmConvert::Reset | ( | ) |
Reset the filter's state, e.g.
drop/flush buffers.