virtual bool CreateAudioCodec (nn::fnd::IAllocator* pAllocator,
mw::mo::moflex::AudioStreamInfo& audioStreamInfo,
mw::mo::GenericAudioDecoder*& pOutAudioDecoder);
| 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. |
true if success.
false in case of failure.
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.