Firelight Technologies FMOD Studio API
Selects a soundcard driver. This function is used when an output mode has enumerated more than one output device, and you need to select between them.
FMOD_RESULT System::setDriver(
int driver
);
FMOD_RESULT FMOD_System_SetDriver(
FMOD_SYSTEM *system,
int driver
);
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
If this function is called after FMOD is already initialized with System::init, the current driver will be shutdown and the newly selected driver will be initialized / started.
The driver that you wish to change to must support the current output format, sample rate, and number of channels. If it does not, FMOD_ERR_OUTPUT_INIT is returned and driver state is cleared. You should now call System::setDriver with your original driver index to restore driver state (providing that driver is still available / connected) or make another selection.
Version 1.03.06 Built on Apr 17, 2014