# MO_GetFrameNbAudioPacket

## C Specification

  `#include <nitro/mobiclip.h>`
  `u32 MO_GetFrameNbAudioPacket ( `MOHandle` handle );`

## Description

Get 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 `MO_INVALID_HANDLE` or when there is no audio track in the movie.

An audio packet size is either 128 or 256 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 MO_GetFrameNbAudioPacket(handle) * `MO_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

03/03/2008 Initial Version