Audio: don’t build ALSA, PulseAudio or FAudio backends when disabled

This commit is contained in:
Emmanuel Gil Peyrot 2019-10-27 23:49:31 +01:00 committed by Nekotekina
parent 63bbf11a76
commit 03a2d36c7e
7 changed files with 38 additions and 25 deletions

View file

@ -1,6 +1,8 @@
#include "FAudioBackend.h"
#ifndef HAVE_FAUDIO
#error "FAudio support disabled but still being built."
#endif
#ifdef HAVE_FAUDIO
#include "FAudioBackend.h"
FAudioBackend::FAudioBackend()
{
@ -175,5 +177,3 @@ f32 FAudioBackend::SetFrequencyRatio(f32 new_ratio)
return new_ratio;
}
#endif