termux-packages/x11-packages/polyphone/sources-context-audiodevice...

48 lines
1.1 KiB
Diff

--- a/sources/context/audiodevice.cpp
+++ b/sources/context/audiodevice.cpp
@@ -28,7 +28,7 @@
#include "portaudio.h"
#include "contextmanager.h"
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
#if __APPLE__
#include "jack.h"
@@ -165,7 +165,7 @@
if (!found)
listRet[0]._isDefault = true;
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
// Add jack if not windows
listRet << HostInfo("Jack", -2);
#endif
@@ -203,7 +203,7 @@
// Arrêt des serveurs son si besoin
this->closeConnections();
-#ifdef Q_OS_WIN
+#if defined Q_OS_WIN || defined __ANDROID__
// Asio cannot work without these two lines
if (hostType == paASIO)
{
@@ -268,7 +268,7 @@
void AudioDevice::openJackConnection(quint32 bufferSize)
{
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
// Format audio à l'écoute
_format.setSampleRate(SAMPLE_RATE);
_format.setChannelCount(2);
@@ -437,7 +437,7 @@
_standardStream = nullptr;
}
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
if (_jack_client)
{
try