VX_GetFrameNbAudioPacket


C Specification

#include <nitro/vx.h>

u32         VX_GetFrameNbAudioPacket        ( VXHandle handle );

Description

Gets the number of audio packets per track for the current frame.

Arguments

handle Valid handle movie.

Return Values

The number of audio packets for the current frame for each audio track.
0 if the handle is VX_INVALID_HANDLE or when there is no audio track in the movie.

An audio packet size is 128 samples of PCM 16 bits.

Each audio track has the same number of packets for any given frame.
Total number of audio packets for a given frame will be :
VX_GetFrameNbAudioPacket(handle) * VX_GetNbAudioTrack(handle).
If you have more than one audio track, the audio packets of the different tracks are interleaved.
For example if you have 2 audio tracks, the audio packets are interleaved in this manner :
Packet0_Track0, Packet0_Track1, Packet1_Track0, Packet1_Track1, etc ...

Revision History

10/26/2005 Initial Version