Finish hooking up FAudio to the rest of the frontend
This commit is contained in:
parent
539027ca16
commit
d6f3fd23de
|
@ -2336,7 +2336,7 @@ EVT_HANDLER_MASK(SoundConfigure, "Sound options...", CMDEN_NREC_ANY)
|
|||
// otherwise reload if API changes
|
||||
(oapi != gopts.audio_api || odev != gopts.audio_dev ||
|
||||
// or init-only options
|
||||
(oapi == AUD_XAUDIO2 && oupmix != gopts.upmix) || (oapi == AUD_DIRECTSOUND && ohw != gopts.dsound_hw_accel))) {
|
||||
(oapi == AUD_XAUDIO2 && oupmix != gopts.upmix) || (oapi == AUD_FAUDIO && oupmix != gopts.upmix) || (oapi == AUD_DIRECTSOUND && ohw != gopts.dsound_hw_accel))) {
|
||||
soundShutdown();
|
||||
soundInit();
|
||||
}
|
||||
|
|
|
@ -1096,6 +1096,10 @@ SoundDriver* systemSoundInit()
|
|||
case AUD_XAUDIO2:
|
||||
return newXAudio2_Output();
|
||||
#endif
|
||||
#ifndef NO_FAUDIO
|
||||
case AUD_FAUDIO:
|
||||
return newFAudio_Output();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
default:
|
||||
|
|
|
@ -449,6 +449,7 @@ enum renderer {
|
|||
enum audioapi { AUD_SDL,
|
||||
AUD_OPENAL,
|
||||
AUD_DIRECTSOUND,
|
||||
AUD_FAUDIO,
|
||||
AUD_XAUDIO2 };
|
||||
|
||||
// an unfortunate legacy default; should have a non-digit preceding %d
|
||||
|
@ -712,6 +713,8 @@ extern SoundDriver* newDirectSound();
|
|||
extern bool GetDSDevices(wxArrayString& names, wxArrayString& ids);
|
||||
extern SoundDriver* newXAudio2_Output();
|
||||
extern bool GetXA2Devices(wxArrayString& names, wxArrayString& ids);
|
||||
extern SoundDriver* newFAudio_Output();
|
||||
extern bool GetFSDevices(wxArrayString& names, wxArrayString& ids);
|
||||
#endif
|
||||
|
||||
extern bool debugger;
|
||||
|
|
Loading…
Reference in New Issue