Bink SDK 1.5v

# BinkGetTrackData

The function BinkGetTrackData extracts all of the sound in the current video frame.

    U32 BinkGetTrackData(
      HBINKTRACK bink_track,
      VOID_PTR dest_addr
    );

#### In Parameters

bink_track
  Specifies the handle to extract from.
dest_addr
  Address where the samples should be decoded into.

#### Returns

Returns the number of bytes decoded.

#### Discussion

This function extracts all of the audio data for the current video frame. The dest_addr pointer must be large enough to contain the maximum amount of sound that will be decoded (which will be on frame 1). You can get the largest size necessary by looking at the MaxSize field in the BINKTRACK structure. This function is rarely used - most of the time audio playback is completely automatic with Bink.

Group: Bink API
Related Functions: BinkCloseTrack, BinkOpenTrack
Related Basic Types: HBINKTRACK, U32, VOID_PTR
Related Structures: BINKTRACK

For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.