mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-12 15:45:54 +01:00
PortAudio devendored
Closes #1413 Closes #1414 This commit addresses issues with building PortMixer using the upstream version of PortAudio. The resulting solution allows: * To build Linux with the vanilla PortAudio. * To build Windows with the vanilla PortAudio, but the notable exceptions: * for PortMixer to work on MME - PA 19.7.0 is required; only static linking is supported. A patch is available to allow dynamic linking; * for PortMixer to work on DirectSound - the patch is always required. Remove nyquist autotools
This commit is contained in:
committed by
Dmitry Vedenko
parent
394ddd2e35
commit
e6fb573001
@@ -0,0 +1,16 @@
|
||||
cmake_minimum_required( VERSION 3.15 )
|
||||
project( PaWinDS_GetDeviceGUID )
|
||||
|
||||
set( MODULE_DIR "${CMAKE_BINARY_DIR}/../../.." )
|
||||
|
||||
set( CMAKE_MODULE_PATH
|
||||
${MODULE_DIR}
|
||||
${CMAKE_MODULE_PATH}
|
||||
)
|
||||
|
||||
set( PortAudio_DIR ${MODULE_DIR} )
|
||||
|
||||
find_package( PortAudio REQUIRED )
|
||||
|
||||
add_executable( PaWinDS_GetDeviceGUID check.c )
|
||||
target_link_libraries( PaWinDS_GetDeviceGUID PortAudio::PortAudio )
|
||||
10
lib-src/portmixer/cmake/CheckPaWinDS_GetDeviceGUID/check.c
Normal file
10
lib-src/portmixer/cmake/CheckPaWinDS_GetDeviceGUID/check.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <Windows.h>
|
||||
#include <portaudio.h>
|
||||
#include <pa_win_ds.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
PaWinDS_GetDeviceGUID(0, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
cmake_minimum_required( VERSION 3.15 )
|
||||
project( CheckPaWinMME_GetStreamInputHandle )
|
||||
|
||||
set( MODULE_DIR "${CMAKE_BINARY_DIR}/../../.." )
|
||||
|
||||
set( CMAKE_MODULE_PATH
|
||||
${MODULE_DIR}
|
||||
${CMAKE_MODULE_PATH}
|
||||
)
|
||||
|
||||
set( PortAudio_DIR ${MODULE_DIR} )
|
||||
|
||||
find_package( PortAudio REQUIRED )
|
||||
|
||||
add_executable( CheckPaWinMME_GetStreamInputHandle check.c )
|
||||
target_link_libraries( CheckPaWinMME_GetStreamInputHandle PortAudio::PortAudio )
|
||||
@@ -0,0 +1,11 @@
|
||||
#include <Windows.h>
|
||||
#include <portaudio.h>
|
||||
#include <pa_win_wmme.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
PaWinMME_GetStreamInputHandle(0, 0);
|
||||
PaWinMME_GetStreamOutputHandle(0, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user