Adds option to force openal

Adds in the option to force OpenAL. More specifically, adds in the code for the option to have an effect.
This commit is contained in:
CybertronicToon 2017-02-18 01:28:25 -06:00 committed by GitHub
parent f7cba80bf8
commit 6b43c396bd

View File

@ -125,7 +125,7 @@ namespace ClassicalSharp.Audio {
}
IAudioOutput GetPlatformOut() {
if (OpenTK.Configuration.RunningOnWindows)
if (OpenTK.Configuration.RunningOnWindows && !Options.GetBool(OptionsKey.ForceOpenAL, false))
return new WinMmOut();
return new OpenALOut();
}