1
0
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:
Dmitry Vedenko
2021-08-12 15:48:15 +03:00
committed by Dmitry Vedenko
parent 394ddd2e35
commit e6fb573001
61 changed files with 737 additions and 54583 deletions

View File

@@ -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 )

View File

@@ -0,0 +1,10 @@
#include <Windows.h>
#include <portaudio.h>
#include <pa_win_ds.h>
int main()
{
PaWinDS_GetDeviceGUID(0, 0);
return 0;
}

View File

@@ -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 )

View File

@@ -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;
}