Bink SDK 1.5v |
Bink allows any number of audio tracks to be added to a Bink file. You can decompress or not decompress any tracks you wish. You could, for example, store all the music in one track, and multiple languages in other tracks. Each audio track in Bink is either a mono or stereo track. The person creating the Bink files chooses a new track ID for each audio file that is mixed in (by default, track zero is used). Generally, audio is automatically routed by Bink to your sound library automatically. You just specify the tracks you want to play with the BinkSetSoundTrack functions and Bink takes care of the rest. The Bink high-level audio functions (BinkSetSoundTrack, BinkSetVolume and BinkSetPan) all take track IDs. These are the same numbers that the person mixing in the audio uses in the RAD Video Tools. So, usually, you simply need to set some standard - track 0 is the music, track 1 is English, track 2 is French, etc. Then, your game can select the correct tracks to start and control with simple defines that specify which localization you are building. Bink also has low-level audio functions that let you query what audio tracks are present and extract the PCM samples directly. These functions take a track index rather than a track ID. A track index ranges from zero to the total number of tracks in the Bink file. So, you could have track IDs of 42 and 118, or, 65 and 12, but the track indexes will still range from zero to one. You can get the total number of audio tracks in a Bink file by looking at the NumTracks field of the BINK structure. You can correlate a track index to a track ID with the BinkGetTrackID function. As noted above, though, you normally just let Bink handle the audio details and you simply choose which tracks to play.
Previous Topic (Colorspace - RGB vs. YUV)
Group:
Bink Overview
Related Sections:
Sound on the Nintendo GameCube, Sound on the Xbox, Sound under MacOS, Sound under Win32
Related Functions:
BinkGetTrackID, BinkSetMixBinVolumes, BinkSetMixBins, BinkSetPan, BinkSetSoundTrack, BinkSetVolume
Related Structures:
BINK
For technical support, e-mail Bink1@radgametools.com
© Copyright 1994-2003 RAD Game Tools, Inc. All Rights Reserved.