freebsd-ports/devel/godot2/files/patch-drivers_rtaudio_audio__driver__rtaudio.cpp
Antoine Brodin 26b4c8f71f Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed

With hat:	portmgr
2021-01-01 10:11:34 +00:00

18 lines
614 B
C++

--- drivers/rtaudio/audio_driver_rtaudio.cpp.orig 2016-08-09 07:52:15 UTC
+++ drivers/rtaudio/audio_driver_rtaudio.cpp
@@ -35,8 +35,14 @@ const char* AudioDriverRtAudio::get_name
#ifdef OSX_ENABLED
return "RtAudio-OSX";
-#elif defined(UNIX_ENABLED)
+#elif defined(UNIX_ENABLED) && (defined(ALSA_ENABLED) || defined(PULSEAUDIO_ENABLED) || defined(OSS_ENABLED))
+#if defined(OSS_ENABLED)
+ return "RtAudio-OSS";
+#elif defined(ALSA_ENABLED)
return "RtAudio-ALSA";
+#elif defined(PULSEAUDIO_ENABLED)
+ return "RtAudio-PulseAudio";
+#endif
#elif defined(WINDOWS_ENABLED)
return "RtAudio-DirectSound";
#else