MOGetNextAudioPacketSize

C Specification

#include <mo/Mobiclip.h>

MOResult MOGetNextAudioPacketSize(const MOInstance* pInstance, u32* pSizeInBytes)

Arguments

pInstance Instance of the concerned movie.
pSizeInBytes Size in bytes of the next audio block for the next call to MOGetAudioPacket.

Return Values

MO_RESULT_OK Success.
MO_RESULT_NULL MOInstance pointer is NULL.
MO_RESULT_NOT_OPENED A successfull call to MOOpen function have not been done before, or open process not complete yet.
MO_RESULT_NO_AUDIO_TRACK There is no audio track in the movie data.
MO_RESULT_NO_VALID_AUDIO_PACKET There is no valid audio packet in the audio queue.

Description

That function will give the size in bytes of the next audio frame.
The size of a valid audio frame can be 0; even in this case the audio frame has to be processed, either retrieved (using MOGetAudioPacket function) or skipped (using MOSkipAudioPacket function).

See Also

MODecode

MOGetAudioPacket

MOSkipAudioPacket

Revision History

02/24/2010 Description about MO_RESULT_NO_AUDIO_TRACK and MO_RESULT_NO_VALID_AUDIO_PACKET return values added. Updated Description section with management of audio packets with size 0.

03/26/2009 Parameter renaming done.

06/22/2008 Initial version.