MO_BlitFrameSoundOnePacket

C Specification

#include <nitro/mobiclip.h>

u32 MO_BlitFrameSoundOnePacket ( MOHandle handle, s16* outSoundBuffer );

Description

Blit a packet of the current unpacked sound to a user buffer.
The output is in 16 bits PCM format.
To avoid unnecessary copies, give a direct address to your currently playing (circular) sound buffer using outSoundBuffer.

Arguments

handle Valid handle movie.
outSoundBuffer Pointer where the sound frame must be blitted

Return Values

1 if no error, 0 if there is no more audio packet available or if the handle is MO_INVALID_HANDLE.

See Also

MO_SkipFrameSoundOnePacket

Revision History

03/03/2008 Initial Version