aboutsummaryrefslogtreecommitdiff
path: root/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp')
-rw-r--r--net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp b/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp
index c2240c21deca..2cd3382b818f 100644
--- a/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp
+++ b/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_audio_AudioOutput.cpp
@@ -1,6 +1,6 @@
---- Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp.orig 2017-07-06 17:16:18 UTC
+--- Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp.orig 2017-12-27 18:47:58 UTC
+++ Telegram/ThirdParty/libtgvoip/audio/AudioOutput.cpp
-@@ -21,7 +21,7 @@
+@@ -20,7 +20,7 @@
#include "../os/windows/AudioOutputWave.h"
#endif
#include "../os/windows/AudioOutputWASAPI.h"
@@ -9,3 +9,21 @@
#include "../os/linux/AudioOutputALSA.h"
#include "../os/linux/AudioOutputPulse.h"
#else
+@@ -52,7 +52,7 @@ AudioOutput *AudioOutput::Create(std::st
+ return new AudioOutputWave(deviceID);
+ #endif
+ return new AudioOutputWASAPI(deviceID);
+-#elif defined(__linux__)
++#elif defined(__linux__) || defined(__FreeBSD__)
+ if(AudioOutputPulse::IsAvailable()){
+ AudioOutputPulse* aop=new AudioOutputPulse(deviceID);
+ if(!aop->IsInitialized())
+@@ -101,7 +101,7 @@ void AudioOutput::EnumerateDevices(std::
+ }
+ #endif
+ AudioOutputWASAPI::EnumerateDevices(devs);
+-#elif defined(__linux__) && !defined(__ANDROID__)
++#elif (defined(__linux__) || defined(__FreeBSD__)) && !defined(__ANDROID__)
+ if(!AudioOutputPulse::IsAvailable() || !AudioOutputPulse::EnumerateDevices(devs))
+ AudioOutputALSA::EnumerateDevices(devs);
+ #endif