Firelight Technologies FMOD Studio API

System::setSoftwareFormat

Sets the output format for the software mixer. Do not call this unless you explicity want to change a setting from the default. FMOD will default to the speaker mode and sample rate that the OS / output prefers.

C++ Syntax

FMOD_RESULT System::setSoftwareFormat(
  int samplerate,
  FMOD_SPEAKERMODE speakermode,
  int numrawspeakers
);

C Syntax

FMOD_RESULT FMOD_System_SetSoftwareFormat(
  FMOD_SYSTEM *system,
  int samplerate,
  FMOD_SPEAKERMODE speakermode,
  int numrawspeakers
);

Parameters

samplerate
Sample rate that the software mixer will run at.
speakermode
Speaker setup for the software mixer.
numrawspeakers
Number of output channels / speakers to initialize the sound card to in FMOD_SPEAKERMODE_RAW mode.

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

This function cannot be called after FMOD is already activated, it must be called before System::init, or after System::close.

See Also




Version 1.03.06 Built on Apr 17, 2014