EMIPLIB
Public Member Functions

MIPRawU8AudioMessage Class Reference

Container for unsigned eight-bit raw audio data. More...

#include <miprawaudiomessage.h>

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

List of all members.

Public Member Functions

 MIPRawU8AudioMessage (int sampRate, int numChannels, int numFrames, uint8_t *pFrames, bool deleteFrames)
 Creates a MIPRawU8AudioMessage instance.
uint8_t * getFrames () const
 Returns the audio data.
void setFrames (uint8_t *pFrames, bool deleteFrames)
 Stores audio data.
MIPMediaMessagecreateCopy () const
 Create a copy of this message.

Detailed Description


Constructor & Destructor Documentation

MIPRawU8AudioMessage::MIPRawU8AudioMessage ( int  sampRate,
int  numChannels,
int  numFrames,
uint8_t *  pFrames,
bool  deleteFrames 
) [inline]

Creates a MIPRawU8AudioMessage instance.

Parameters:
sampRateSampling rate.
numChannelsNumber of channels.
numFramesNumber of frames.
pFramesThe audio data.
deleteFramesFlag indicating if the data contained in pFrames should be deleted when this message is destroyed or when the data is replaced.

Member Function Documentation

MIPMediaMessage* MIPRawU8AudioMessage::createCopy ( ) const [inline, virtual]
uint8_t* MIPRawU8AudioMessage::getFrames ( ) const [inline]
void MIPRawU8AudioMessage::setFrames ( uint8_t *  pFrames,
bool  deleteFrames 
) [inline]

Stores audio data.

Parameters:
pFramesThe audio data.
deleteFramesFlag indicating if the data contained in pFrames should be deleted when this message is destroyed or when the data is replaced.

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