diff options
author | Paul Adenot <[email protected]> | 2021-12-07 13:50:17 +0100 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2021-12-08 08:47:42 +1300 |
commit | 9937d0bb57f84e19abee3d3bba9cfd51a67f6ab1 (patch) | |
tree | 30a8ed8671b55518f6e474b983e29c0397eb2864 | |
parent | 75d9d125ee655ef80f3bfcd97ae5a805931042b8 (diff) | |
download | cubeb-9937d0bb57f84e19abee3d3bba9cfd51a67f6ab1.tar.gz cubeb-9937d0bb57f84e19abee3d3bba9cfd51a67f6ab1.zip |
Fix build on MinGW
Original downstream patch by Tom Ritter <[email protected]>.
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/cubeb_winmm.c | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cd808e..90ccd18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,7 +259,7 @@ if(USE_WASAPI) target_sources(cubeb PRIVATE src/cubeb_wasapi.cpp) target_compile_definitions(cubeb PRIVATE USE_WASAPI) - target_link_libraries(cubeb PRIVATE avrt ole32) + target_link_libraries(cubeb PRIVATE avrt ole32 ksuser) endif() check_include_files("windows.h;mmsystem.h" USE_WINMM) diff --git a/src/cubeb_winmm.c b/src/cubeb_winmm.c index 169b743..44aec86 100644 --- a/src/cubeb_winmm.c +++ b/src/cubeb_winmm.c @@ -73,17 +73,6 @@ #define CUBEB_STREAM_MAX 32 #define NBUFS 4 -const GUID KSDATAFORMAT_SUBTYPE_PCM = { - 0x00000001, - 0x0000, - 0x0010, - {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}}; -const GUID KSDATAFORMAT_SUBTYPE_IEEE_FLOAT = { - 0x00000003, - 0x0000, - 0x0010, - {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}}; - struct cubeb_stream_item { SLIST_ENTRY head; cubeb_stream * stream; |