CVorbisDecoder Class Reference

List of all members.

Public Member Functions

void PacketInL (ogg_packet aPacket)
void PcmOutL (TDes8 &aBuf)
void DecoderL (const CMMFDataBuffer &aBuf, TDes8 &aDstBuf)
void Reset ()
void PacketInL (ogg_packet aPacket)
void PcmOutL (TDes8 &aBuf)
void DecoderL (const CMMFDataBuffer &aBuf, TDes8 &aDstBuf)
void Reset ()
TBool IsLastPage (CMMFDataBuffer &aBuf)

Static Public Member Functions

static CVorbisDecoderNewL ()
static CVorbisDecoderNewL ()

Detailed Description

Definition at line 15 of file VorbisDecoder.h.


Member Function Documentation

void CVorbisDecoder::PacketInL ( ogg_packet  aPacket  ) 

This method takes an oggpacket as an input and submits into the vorbis synthesis block which is owned by the tremor. This method can be repeatedly called by the client during initialisation until 3 packets have been found, at which point the vorbis libraries are initialised.

Parameters:
aPacket An ogg_packet. Leaves with KErrNotSupported when the data does not belong to the vorbis stream, KErrCorrupt if header is corrupted and any of the system wide error codes.

Definition at line 67 of file VorbisDecoder.cpp.

void CVorbisDecoder::PcmOutL ( TDes8 &  aBuf  ) 

This method decodes the oggpacket submitted during PacketInL() into pcmdata and fills the destination buffer.

Parameters:
aBuf The buffer in which the pcmdata is submitted.

Leaves with KErrNotSupported when the data does not belong to the vorbis stream, KErrCorrupt if header is corrupted and any of the system wide error codes.

Definition at line 131 of file VorbisDecoder.cpp.

void CVorbisDecoder::DecoderL ( const CMMFDataBuffer &  aBuf,
TDes8 &  aDstBuf 
)

This method extracts all ogg pages and packets from source buffer and sends each packet to PacketInL() for decoding. pcmdata and fills the destination buffer.

Parameters:
aBuf The source buffer contains encoded data.
aDstBuf The destination buffer in which the pcmdata is submitted.

Leaves with any system wide error code.

Definition at line 234 of file VorbisDecoder.cpp.


Generated by  doxygen 1.6.2