cubeb: disable wasapi backend when '--enable-int-audio-sample' is specified, since it can handle float32 sample only in our current cubeb library.

This commit is contained in:
roytam1 2023-08-19 13:41:49 +08:00
commit 0f1c046a14

View file

@ -64,11 +64,14 @@ if CONFIG['OS_TARGET'] == 'Darwin':
if CONFIG['OS_TARGET'] == 'WINNT':
SOURCES += [
'cubeb_resampler.cpp',
'cubeb_wasapi.cpp',
'cubeb_winmm.c',
]
DEFINES['USE_WINMM'] = True
DEFINES['USE_WASAPI'] = True
if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
DEFINES['USE_WASAPI'] = True
SOURCES += [
'cubeb_wasapi.cpp',
]
if CONFIG['_MSC_VER']:
CXXFLAGS += ['-wd4005'] # C4005: '_USE_MATH_DEFINES' : macro redefinition