Skip to content

Commit

Permalink
FMOD|Windows: Use the system's configured speaker mode
Browse files Browse the repository at this point in the history
This might help with the 5.1/7.1 and other more refined speaker setups.
  • Loading branch information
skyjake committed Oct 8, 2012
1 parent 1f55d06 commit 9c1f2ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doomsday/plugins/fmod/src/driver_fmod.cpp
Expand Up @@ -50,6 +50,16 @@ int DS_Init(void)
return false;
}

#ifdef WIN32
// Figure out the system's configured speaker mode.
FMOD_SPEAKERMODE speakerMode;
result = fmodSystem->getDriverCaps(0, 0, 0, 0, &speakerMode);
if(result == FMOD_OK)
{
fmodSystem->setSpeakerMode(speakerMode);
}
#endif

// Initialize FMOD.
if((result = fmodSystem->init(50, FMOD_INIT_NORMAL | FMOD_INIT_3D_RIGHTHANDED | FMOD_INIT_HRTF_LOWPASS, 0)) != FMOD_OK)
{
Expand Down

0 comments on commit 9c1f2ad

Please sign in to comment.