System::getNumDrivers

FMOD Studio API

Firelight Technologies FMOD Studio API

System::getNumDrivers

Retrieves the number of soundcard devices on the machine, specific to the output mode set with System::setOutput.

C++ Syntax

FMOD_RESULT System::getNumDrivers(
  int *numdrivers
);

C Syntax

FMOD_RESULT FMOD_System_GetNumDrivers(
  FMOD_SYSTEM *system,
  int *numdrivers
);

C# Syntax

RESULT System.getNumDrivers(
  out int numdrivers
);

JavaScript Syntax

System.getNumDrivers(
  numdrivers                       // writes value to numdrivers.val
);

Parameters

numdrivers
Address of a variable that receives the number of output drivers.

Return Values

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.

Remarks

If System::setOutput is not called it will return the number of drivers available for the default output type. Use this for enumerating sound devices. Use System::getDriverInfo to get the device's name.

See Also




Version 1.10.03 Built on Feb 1, 2018