mw::mo::helper::AudioPresentationBuffer::Initialize Function

Syntax


bool Initialize (nn::fnd::IAllocator* pAllocator, const mw::mo::moflex::AudioStreamInfo* pAudioStreamInfo);

Arguments

Name Description
in pAllocator The pointer to an allocator class that will be used for all momory allocation/deallocation tasks.
in pAudioStreamInfo The pointer to a Moflex audio stream info structure that holds all informations on the active Moflex audio stream that will be played.

Returns

true if success.
false if an error happened during the process.
In the case of this base class false is returned if pAllocator pointer has the value NULL.
In derived classes an error can also be triggered for other reasons.

Description

Creates(allocates) and itializes all internal datas of the AudioPresentationBuffer class.
This base class only stores the parameters value in its class members.
Derived classes can also perform other actions like playback audio buffers allocations and initializations.
Derived classes should override this method and the overrided method should call the base class Initialize method before doing any of its initialization work.

Revision History

2011/10/03
Initial version.