I have the following C++ error: Compiling src/osd/modules/sound/wasapisound.cpp...…
- User
I have the following C++ error:
Compiling src/osd/modules/sound/wasapi_sound.cpp... ../../../../../src/osd/modules/sound/wasapi_sound.cpp: In member function 'virtual uint32_t osd::{anonymous}::sound_wasapi::stream_sink_open(uint32_t, std::string, uint32_t)': ../../../../../src/osd/modules/sound/wasapi_sound.cpp:716:20: error: 'AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM' was not declared in this scope; did you mean 'AUDCLNT_STREAMFLAGS_LOOPBACK'? 716 | stream_flags |= AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | AUDCLNT_STREAMFLAGS_LOOPBACK ../../../../../src/osd/modules/sound/wasapi_sound.cpp:716:57: error: 'AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY' was not declared in this scope 716 | stream_flags |= AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../../src/osd/modules/sound/wasapi_sound.cpp: In member function 'virtual uint32_t osd::{anonymous}::sound_wasapi::stream_source_open(uint32_t, std::string, uint32_t)': ../../../../../src/osd/modules/sound/wasapi_sound.cpp:887:20: error: 'AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM' was not declared in this scope; did you mean 'AUDCLNT_STREAMFLAGS_LOOPBACK'? 887 | stream_flags |= AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | AUDCLNT_STREAMFLAGS_LOOPBACK ../../../../../src/osd/modules/sound/wasapi_sound.cpp:887:57: error: 'AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY' was not declared in this scope 887 | stream_flags |= AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM | AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ osd_windows.make:1554: recipe for target '../../../../mingw-gcc/obj/x32/Release/osd_windows/src/osd/modules/sound/wasapi_sound.o' failed make[2]: *** [../../../../mingw-gcc/obj/x32/Release/osd_windows/src/osd/modules/sound/wasapi_sound.o] Error 1 makefile:19: recipe for target 'osd_windows' failed make[1]: *** [osd_windows] Error 2 makefile:1097: recipe for target 'windows_x86' failed make: *** [windows_x86] Error 2
The C++ is tis: https://github.com/mamedev/mame/blob/master/src/osd/modules/sound/wasapi_sound.cpp
How can i replace these API's:
AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM AUDCLNT_STREAMFLAGS_EVENTCALLBACK AUDCLNT_STREAMFLAGS_LOOPBACK AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY
- Assistant