VX_BlitFrameSoundOnePacket


C Specification

#include <nitro/vx.h>

u32     VX_BlitFrameSoundOnePacket  ( VXHandle handle, 
                                      s16* outSoundBuffer );

Description

Blits a packet of the current unpacked sound to a user buffer.
The output is in 16 bits PCM format.
As 128 samples are blitted, 256 bytes are written in the output buffer.
To avoid unnecessary copies, give a direct address to your currently playing (circular) sound buffer with 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 VX_INVALID_HANDLE.

See Also

VX_SkipFrameSoundOnePacket

Revision History

10/26/2005 Initial Version