Remove ifdef's default audio device

If we want to select an audio device based on build flags,
it should be done as a final step.
This commit is contained in:
Campbell Barton
2018-09-12 19:45:43 +10:00
parent 4464a86a6e
commit e56c5dd982

View File

@@ -135,12 +135,7 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
if (userdef->audiochannels == 0)
userdef->audiochannels = 2;
if (userdef->audiodevice == 0) {
#ifdef WITH_OPENAL
userdef->audiodevice = 2;
#endif
#ifdef WITH_SDL
userdef->audiodevice = 1;
#endif
userdef->audiodevice = 2; /* OpenAL */
}
if (userdef->audioformat == 0)
userdef->audioformat = 0x24;