Bink SDK 1.5v

# BinkSetSoundSystem

The function BinkSetSoundSystem tells Bink to use a custom sound provider as its sound output system.

    S32 BinkSetSoundSystem(
      VOID_PTR BinkOpenSoundSystemFunction,
      U32 param_value
    );

#### In Parameters

BinkOpenSoundSystemFunction
  Specifies the function to call to open the custom sound system object.
param_value
  Specifies a 32-bit sound system defined parameter to pass to the OpenSoundSystemFunction function.

#### Returns

Returns whether Bink successfully switched to the new sound system.

#### Discussion

This function is the low-level method of switching to a new sound system in Bink. Both BinkSoundUseMiles and BinkSoundUseDirectSound are simply macros that just call this function. You can use this function to write your own sound system provider, but you should note that sound providers are not trivial to write and are almost never necessary. If you are still interested in writing your own provider, contact RAD for details. This function is global - you only need to call it once. You must, however, call it before you call BinkOpen for the first time, or the function will fail.

Group: Bink API
Related Functions: BinkOpen, BinkSoundUseAX, BinkSoundUseDirectSound, BinkSoundUseMiles, BinkSoundUseMusyX, BinkSoundUseSoundManager
Related Basic Types: S32, U32, VOID_PTR

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