#include <nitro/vx.h>
u32 VX_BlitFrameSoundOnePacket ( VXHandle handle,
s16* outSoundBuffer );
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.
handle |
Valid handle movie |
outSoundBuffer |
Pointer where the sound frame must be blitted |
1 if no error, 0 if there is no more audio packet available or if the handle is VX_INVALID_HANDLE.
10/26/2005 Initial Version