EMIPLIB
Public Member Functions

MIPEncodedAudioMessage Class Reference

Container for encoded audio data.

#include <mipencodedaudiomessage.h>

Inheritance diagram for MIPEncodedAudioMessage:
Inheritance graph
[legend]
Collaboration diagram for MIPEncodedAudioMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MIPEncodedAudioMessage (uint32_t subType, int samplingRate, int numChannels, int numFrames, uint8_t *pData, size_t numBytes, bool deleteData)
 Creates an encoded audio message.
const uint8_t * getData () const
 Returns a pointer to the encoded audio data.
size_t getDataLength () const
 Returns the length of the encoded audio.
void setDataLength (size_t l)
 Sets the length of the encoded audio to 'l'.
MIPMediaMessagecreateCopy () const
 Creates a copy of this message.

Constructor & Destructor Documentation

MIPEncodedAudioMessage::MIPEncodedAudioMessage ( uint32_t  subType,
int  samplingRate,
int  numChannels,
int  numFrames,
uint8_t *  pData,
size_t  numBytes,
bool  deleteData 
) [inline]

This constructor can be used to create an encoded audio message.

Parameters:
subTypeThe subtype of the message.
samplingRateThe sampling rate.
numChannelsThe number of channels.
numFramesThe number of frames contained in the message.
pDataThe actual encoded audio data.
numBytesThe length of the encoded audio data.
deleteDataFlag indicating if the memory block pointed to by pData should be deleted when this message is destroyed.

Referenced by createCopy().


Member Function Documentation

MIPMediaMessage * MIPEncodedAudioMessage::createCopy ( ) const [inline, virtual]
const uint8_t* MIPEncodedAudioMessage::getData ( ) const [inline]
size_t MIPEncodedAudioMessage::getDataLength ( ) const [inline]
void MIPEncodedAudioMessage::setDataLength ( size_t  l) [inline]

The documentation for this class was generated from the following file: