mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
From 89d9e8fe7610713d2c1d54df7acefd811d0548dc Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Wed, 15 Mar 2023 11:28:34 +1000
|
|
Subject: Add command for play sounds
|
|
|
|
|
|
diff --git a/src/common.cpp b/src/common.cpp
|
|
index 68e9222..c258c42 100644
|
|
--- a/src/common.cpp
|
|
+++ b/src/common.cpp
|
|
@@ -259,12 +259,22 @@ bool fileCopy(const QString &src, const QString &dest)
|
|
*/
|
|
QString soundDetectPlayer()
|
|
{
|
|
+#ifdef Q_OS_HAIKU
|
|
+ if (QFile("/bin/alplay").exists()) {
|
|
+ return "alplay";
|
|
+ }
|
|
+ if (QFile("/bin/playsound").exists()) {
|
|
+ return "playsound";
|
|
+ }
|
|
+ return "media_client play";
|
|
+#else
|
|
// prefer ALSA on linux
|
|
if (QFile("/proc/asound").exists()) {
|
|
return "aplay -q";
|
|
}
|
|
// fallback to "play"
|
|
return "play";
|
|
+#endif
|
|
}
|
|
|
|
void soundPlay(const QString &s)
|
|
--
|
|
2.45.2
|
|
|
|
|
|
From c275b0cfe096c72c9eda092ce3d2c03b6acbfdf6 Mon Sep 17 00:00:00 2001
|
|
From: Schrijvers Luc <begasus@gmail.com>
|
|
Date: Mon, 2 Sep 2024 13:08:31 +0200
|
|
Subject: Build fix
|
|
|
|
Fixes: error 'uint32_t' is not a member of 'std'
|
|
|
|
diff --git a/src/widgets/emojiregistry.cpp b/src/widgets/emojiregistry.cpp
|
|
index cd05038..218f5ff 100644
|
|
--- a/src/widgets/emojiregistry.cpp
|
|
+++ b/src/widgets/emojiregistry.cpp
|
|
@@ -17,6 +17,8 @@
|
|
*
|
|
*/
|
|
|
|
+#include <cstdint>
|
|
+
|
|
#include "emojiregistry.h"
|
|
#include "emojidb.cpp"
|
|
|
|
--
|
|
2.45.2
|
|
|