A class that converts samples from one format to another.
More...
#include <FormatConverter.hxx>
A class that converts samples from one format to another.
Definition at line 37 of file FormatConverter.hxx.
PcmFormatConverter::PcmFormatConverter |
( |
| ) |
|
|
inline |
PcmFormatConverter::~PcmFormatConverter |
( |
| ) |
|
|
inline |
void PcmFormatConverter::Close |
( |
| ) |
|
|
noexcept |
Closes the object.
After that, you may call Open() again.
Convert a block of PCM data.
- Parameters
-
- Returns
- the destination buffer
Opens the object, prepare for Convert().
Throws std::runtime_error on error.
- Parameters
-
src_format | the sample format of incoming data |
dest_format | the sample format of outgoing data |
The documentation for this class was generated from the following file: