DSF2FLAC
Public Member Functions | Private Attributes
DopPacker Class Reference

A class which takes DSD samples from a DsdSampleReader and packs them into DOP encoded PCM. More...

#include <dop_packer.h>

List of all members.

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

DsdSampleReaderreader
 A pointer to the DsdSampleReader.

Detailed Description

A class which takes DSD samples from a DsdSampleReader and packs them into DOP encoded PCM.


Constructor & Destructor Documentation

Class constructor.

reader can be any type of DSD sample reader.

DopPacker::~DopPacker ( ) [virtual]

Class destructor.


Member Function Documentation

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]


Member Data Documentation

A pointer to the DsdSampleReader.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables