Bink SDK 1.5v

BinkSetSoundTrack

The function BinkSetSoundTrack overrides the Bink file's default sound track.

void BinkSetSoundTrack(
  U32 track_count,
  u32_ptr track_id
);

In Parameters

track_count
Specifies the number of tracks to play (the number of tracks in the track_ids array). To play no sound at all, use zero for this parameter.
track_id
Points to an array of sound track IDs to play.

Discussion

This function allows you to set the sound track IDs to play when opening a Bink file. By default, Bink plays the first sound track in the file. If you don't want any sound tracks to play at all, use zero for the track_count parameter. To use this function, you first make this call and then you add the BINKSNDTRACK flag in your BinkOpen call. You can use this function to play back 5.1 audio on an Xbox.


Group: Bink API
Related Sections: Audio Tracks in Bink, Sound on the Xbox
Related Functions: BinkOpen, BinkSetSoundOnOff
Related Basic Types: BINK_OPEN_FLAGS, U32, u32_ptr, void

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