DSF2FLAC
|
A class which takes DSD samples from a DsdSampleReader and packs them into DOP encoded PCM. More...
#include <dop_packer.h>
Public Member Functions | |
DopPacker (DsdSampleReader *reader) | |
Class constructor. | |
virtual | ~DopPacker () |
Class destructor. | |
void | pack_buffer (dsf2flac_int32 *buffer, dsf2flac_uint32 bufferLen) |
Read DOP PCM samples from the reader. | |
Private Attributes | |
DsdSampleReader * | reader |
A pointer to the DsdSampleReader. |
A class which takes DSD samples from a DsdSampleReader and packs them into DOP encoded PCM.
DopPacker::DopPacker | ( | DsdSampleReader * | reader | ) |
Class constructor.
reader can be any type of DSD sample reader.
DopPacker::~DopPacker | ( | ) | [virtual] |
Class destructor.
void DopPacker::pack_buffer | ( | dsf2flac_int32 * | buffer, |
dsf2flac_uint32 | bufferLen | ||
) |
Read DOP PCM samples from the reader.
The input "buffer" will be filled with DoP encoded 24bit PCM samples. "buffer" must be at least "bufferLen" long. "bufferLen" must be a multiple of the number of channels in the reader, a horrible error will be thrown if it is not. The pcm samples are packed in increasing time and interleaved by channel i.e. [left0 right0 left1 right1 ... leftN rightN]
DsdSampleReader* DopPacker::reader [private] |
A pointer to the DsdSampleReader.