mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
only jack+windows use portaudio.
fixes missing lib if portaudio-backend is used on on non-windows platforms (pkg-config defines HAVE_PORTAUDIO)
This commit is contained in:
parent
1cca79258a
commit
7a4f1cb98f
1 changed files with 3 additions and 3 deletions
|
|
@ -34,7 +34,7 @@
|
|||
#include <shlguid.h> // 'IShellLink'
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PORTAUDIO
|
||||
#if (defined PLATFORM_WINDOWS && defined HAVE_PORTAUDIO)
|
||||
#include <portaudio.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -373,7 +373,7 @@ ARDOUR::get_jack_coreaudio_device_names (device_map_t& devices)
|
|||
void
|
||||
ARDOUR::get_jack_portaudio_device_names (device_map_t& devices)
|
||||
{
|
||||
#ifdef HAVE_PORTAUDIO
|
||||
#if (defined PLATFORM_WINDOWS && defined HAVE_PORTAUDIO)
|
||||
if (Pa_Initialize() != paNoError) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -947,7 +947,7 @@ ARDOUR::enumerate_midi_options ()
|
|||
midi_options.push_back (make_pair (_("ALSA (JACK1, 0.124 and later)"), alsa_seq_midi_driver_name));
|
||||
midi_options.push_back (make_pair (_("ALSA (JACK2, 1.9.8 and later)"), alsa_raw_midi_driver_name));
|
||||
#endif
|
||||
#ifdef HAVE_PORTAUDIO
|
||||
#if (defined PLATFORM_WINDOWS && defined HAVE_PORTAUDIO)
|
||||
/* Windows folks: what name makes sense here? Are there other
|
||||
choices as well ?
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue