FLACPushDecoder Class Reference

#include <FLACPushDecoder.h>

Collaboration diagram for FLACPushDecoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FLACPushDecoder (void)
virtual ~FLACPushDecoder (void)
StampedOggPacketdecodeFLAC (OggPacket *inPacket)
bool acceptMetadata (OggPacket *inPacket)
void initCodec ()
void flushCodec ()

Public Attributes

unsigned long mNumChannels
unsigned long mFrameSize
unsigned long mSampleRate

Protected Member Functions

virtual ::FLAC__StreamDecoderReadStatus read_callback (FLAC__byte buffer[], unsigned *bytes)
virtual ::FLAC__StreamDecoderWriteStatus write_callback (const ::FLAC__Frame *frame, const FLAC__int32 *const buffer[])
virtual void metadata_callback (const ::FLAC__StreamMetadata *metadata)
virtual void error_callback (::FLAC__StreamDecoderErrorStatus status)

Protected Attributes

OggPacketmInPacket
StampedOggPacketmOutPacket
bool mBegun
bool mGotMetaData

Static Protected Attributes

const int SIZE_16_BITS = 2

Constructor & Destructor Documentation

FLACPushDecoder::FLACPushDecoder void   ) 
 

Definition at line 4 of file FLACPushDecoder.cpp.

References false.

FLACPushDecoder::~FLACPushDecoder void   )  [virtual]
 

Definition at line 16 of file FLACPushDecoder.cpp.


Member Function Documentation

bool FLACPushDecoder::acceptMetadata OggPacket inPacket  ) 
 

Definition at line 29 of file FLACPushDecoder.cpp.

References mInPacket, and mOutPacket.

StampedOggPacket * FLACPushDecoder::decodeFLAC OggPacket inPacket  ) 
 

Definition at line 39 of file FLACPushDecoder.cpp.

References mInPacket, and mOutPacket.

void FLACPushDecoder::error_callback ::FLAC__StreamDecoderErrorStatus  status  )  [protected, virtual]
 

Definition at line 139 of file FLACPushDecoder.cpp.

void FLACPushDecoder::flushCodec  ) 
 

Definition at line 25 of file FLACPushDecoder.cpp.

Referenced by FLACDecodeInputPin::BeginFlush(), and FLACDecodeInputPin::EndOfStream().

void FLACPushDecoder::initCodec  ) 
 

Definition at line 22 of file FLACPushDecoder.cpp.

Referenced by FLACDecodeInputPin::ConstructCodec().

void FLACPushDecoder::metadata_callback const ::FLAC__StreamMetadata *  metadata  )  [protected, virtual]
 

Definition at line 135 of file FLACPushDecoder.cpp.

FLAC__StreamDecoderReadStatus FLACPushDecoder::read_callback FLAC__byte  buffer[],
unsigned *  bytes
[protected]
 

Definition at line 60 of file FLACPushDecoder.cpp.

References mInPacket, OggPacket::packetData(), and OggPacket::packetSize().

Here is the call graph for this function:

FLAC__StreamDecoderWriteStatus FLACPushDecoder::write_callback const ::FLAC__Frame *  frame,
const FLAC__int32 *const   buffer[]
[protected]
 

Definition at line 81 of file FLACPushDecoder.cpp.

References mBegun, mFrameSize, mNumChannels, mOutPacket, and mSampleRate.


Member Data Documentation

bool FLACPushDecoder::mBegun [protected]
 

Definition at line 33 of file FLACPushDecoder.h.

Referenced by write_callback().

unsigned long FLACPushDecoder::mFrameSize
 

Definition at line 21 of file FLACPushDecoder.h.

Referenced by write_callback().

bool FLACPushDecoder::mGotMetaData [protected]
 

Definition at line 34 of file FLACPushDecoder.h.

OggPacket* FLACPushDecoder::mInPacket [protected]
 

Definition at line 31 of file FLACPushDecoder.h.

Referenced by acceptMetadata(), decodeFLAC(), and read_callback().

unsigned long FLACPushDecoder::mNumChannels
 

Definition at line 20 of file FLACPushDecoder.h.

Referenced by write_callback().

StampedOggPacket* FLACPushDecoder::mOutPacket [protected]
 

Definition at line 32 of file FLACPushDecoder.h.

Referenced by acceptMetadata(), decodeFLAC(), and write_callback().

unsigned long FLACPushDecoder::mSampleRate
 

Definition at line 22 of file FLACPushDecoder.h.

Referenced by write_callback().

const int FLACPushDecoder::SIZE_16_BITS = 2 [static, protected]
 

Definition at line 24 of file FLACPushDecoder.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 15 15:03:13 2005 for oggdsf by  doxygen 1.3.9