mw::mo::helper::MobiclipCodecInstantiation::CreateAudioCodec Function

Syntax


virtual bool CreateAudioCodec (nn::fnd::IAllocator* pAllocator, 
                               mw::mo::moflex::AudioStreamInfo& audioStreamInfo, 
                               mw::mo::GenericAudioDecoder*& pOutAudioDecoder);

Arguments

Name Description
in pAllocator The pointer to an nn::fnd::IAllocator class that will be used to instantiate the audio decoder.
in audioStreamInfo A reference to a mw::mo::moflex::AudioStreamInfo structure containing information on the kind of audio decoder to create.
out pOutAudioDecoder A reference to a pointer that will contain the newly created audio decoder instance.

Returns

true if success.
false in case of failure.

Description

Method called by mw::mo::helper::Player class when wanting to create a new audio decoder instance.
This class can instantiate mw::mo::dspadpcm::Decoder, mw::mo::imaadpcm::Decoder and mw::mo::fastaudio::Decoder classes.
pOutAudioDecoder is NULL if input audio track is already into 16 bits PCM audio format.

Revision History

2012/02/24
Added DSP-ADPCM as a supported audio format.

2011/10/03
Initial version.