mumble: update to 1.3.0.

based on earlier work by @singul0
This commit is contained in:
Helmut Pozimski 2019-09-06 10:27:32 +02:00
parent 589fa2b282
commit dfadeb5188
6 changed files with 24 additions and 856 deletions

View file

@ -1,11 +1,11 @@
--- overlay_gl/overlay_gl.pro 2017-01-29 23:44:01.966483578 +0100
+++ overlay_gl/overlay_gl.pro 2017-01-29 23:44:24.487186063 +0100
@@ -7,7 +7,7 @@
TARGET = mumble$(TARGET_ADD)
VERSION = 1.2.19
SOURCES = overlay.c
-LIBS *= -lrt -ldl
+LIBS *= -lGL -lrt -ldl
--- overlay_gl/overlay_gl.pro
+++ overlay_gl/overlay_gl.pro
@@ -22,7 +22,7 @@ unix:!macx {
DEFINES += TARGET_UNIX
linux* {
- LIBS *= -lrt -ldl
+ LIBS *= -lGL -lrt -ldl
}
QMAKE_CFLAGS *= -fvisibility=hidden $(CFLAGS_ADD)
QMAKE_LFLAGS -= -Wl,--no-undefined
QMAKE_LFLAGS *= $(LFLAGS_ADD)

View file

@ -1,30 +0,0 @@
--- overlay_gl/overlay.c
+++ overlay_gl/overlay.c
@@ -690,19 +690,24 @@ static void initializeLibrary() {
int nchains = 0;
ElfW(Sym) *symtab = NULL;
const char *strtab = NULL;
+#ifdef __GLIBC__
+ const ElfW(Addr) base = 0;
+#else
+ const ElfW(Addr) base = lm->l_addr;
+#endif
ElfW(Dyn) *dyn = lm->l_ld;
while (dyn->d_tag) {
switch (dyn->d_tag) {
case DT_HASH:
- nchains = *(int *)(dyn->d_un.d_ptr + 4);
+ nchains = *(int *)(base + dyn->d_un.d_ptr + 4);
break;
case DT_STRTAB:
- strtab = (const char *) dyn->d_un.d_ptr;
+ strtab = (const char *)(base + dyn->d_un.d_ptr);
break;
case DT_SYMTAB:
- symtab = (ElfW(Sym) *) dyn->d_un.d_ptr;
+ symtab = (ElfW(Sym) *)(base + dyn->d_un.d_ptr);
break;
}
dyn ++;

View file

@ -1,758 +0,0 @@
diff --git src/mumble/ACLEditor.cpp src/mumble/ACLEditor.cpp
index c938ffc..bf321e7 100644
--- src/mumble/ACLEditor.cpp
+++ src/mumble/ACLEditor.cpp
@@ -37,11 +37,12 @@
#include "Channel.h"
#include "ClientUser.h"
#include "Database.h"
-#include "Global.h"
#include "Log.h"
#include "ServerHandler.h"
#include "User.h"
+#include "Global.h"
+
ACLGroup::ACLGroup(const QString &name) : Group(NULL, name) {
bInherited = false;
}
diff --git src/mumble/About.cpp src/mumble/About.cpp
index 4d2cf15..96db27a 100644
--- src/mumble/About.cpp
+++ src/mumble/About.cpp
@@ -32,10 +32,11 @@
#include "About.h"
-#include "Global.h"
#include "MainWindow.h"
#include "licenses.h"
+#include "Global.h"
+
AboutDialog::AboutDialog(QWidget *p) : QDialog(p) {
setWindowTitle(tr("About Mumble"));
diff --git src/mumble/AudioOutput.cpp src/mumble/AudioOutput.cpp
index 0695488..a9a849d 100644
--- src/mumble/AudioOutput.cpp
+++ src/mumble/AudioOutput.cpp
@@ -37,13 +37,14 @@
#include "AudioOutputSample.h"
#include "AudioOutputSpeech.h"
#include "User.h"
-#include "Global.h"
#include "Message.h"
#include "Plugins.h"
#include "PacketDataStream.h"
#include "ServerHandler.h"
#include "VoiceRecorder.h"
+#include "Global.h"
+
// Remember that we cannot use static member classes that are not pointers, as the constructor
// for AudioOutputRegistrar() might be called before they are initialized, as the constructor
// is called from global initialization.
diff --git src/mumble/AudioWizard.cpp src/mumble/AudioWizard.cpp
index 511fd9b..25f7a33 100644
--- src/mumble/AudioWizard.cpp
+++ src/mumble/AudioWizard.cpp
@@ -34,10 +34,11 @@
#include "AudioInput.h"
#include "AudioOutputSample.h"
-#include "Global.h"
#include "Log.h"
#include "MainWindow.h"
+#include "Global.h"
+
CompletablePage::CompletablePage(QWizard *p) : QWizardPage(p) {
bComplete = true;
}
diff --git src/mumble/BanEditor.cpp src/mumble/BanEditor.cpp
index 36dad74..2b222ed 100644
--- src/mumble/BanEditor.cpp
+++ src/mumble/BanEditor.cpp
@@ -33,10 +33,11 @@
#include "BanEditor.h"
#include "Channel.h"
-#include "Global.h"
#include "Net.h"
#include "ServerHandler.h"
+#include "Global.h"
+
BanEditor::BanEditor(const MumbleProto::BanList &msg, QWidget *p) : QDialog(p) {
setupUi(this);
diff --git src/mumble/ConnectDialog.cpp src/mumble/ConnectDialog.cpp
index 17d57e8..d6d87aa 100644
--- src/mumble/ConnectDialog.cpp
+++ src/mumble/ConnectDialog.cpp
@@ -40,10 +40,11 @@
#include "Channel.h"
#include "Database.h"
-#include "Global.h"
#include "ServerHandler.h"
#include "WebFetch.h"
+#include "Global.h"
+
QMap<QString, QIcon> ServerItem::qmIcons;
QList<PublicInfo> ConnectDialog::qlPublicServers;
QString ConnectDialog::qsUserCountry, ConnectDialog::qsUserCountryCode, ConnectDialog::qsUserContinentCode;
diff --git src/mumble/CustomElements.cpp src/mumble/CustomElements.cpp
index b43f215..9a11524 100644
--- src/mumble/CustomElements.cpp
+++ src/mumble/CustomElements.cpp
@@ -34,10 +34,10 @@
#include "CustomElements.h"
#include "ClientUser.h"
-#include "Global.h"
#include "MainWindow.h"
#include "Log.h"
+#include "Global.h"
LogTextBrowser::LogTextBrowser(QWidget *p)
: m_pos(0)
diff --git src/mumble/DBus.cpp src/mumble/DBus.cpp
index 1704395..3342f11 100644
--- src/mumble/DBus.cpp
+++ src/mumble/DBus.cpp
@@ -34,10 +34,10 @@
#include "Channel.h"
#include "ClientUser.h"
-#include "Global.h"
#include "MainWindow.h"
#include "ServerHandler.h"
+#include "Global.h"
MumbleDBus::MumbleDBus(QObject *mw) : QDBusAbstractAdaptor(mw) {
}
diff --git src/mumble/GlobalShortcut.cpp src/mumble/GlobalShortcut.cpp
index d35cf91..503a26c 100644
--- src/mumble/GlobalShortcut.cpp
+++ src/mumble/GlobalShortcut.cpp
@@ -36,9 +36,10 @@
#include "ClientUser.h"
#include "Channel.h"
#include "Database.h"
-#include "Global.h"
#include "MainWindow.h"
+#include "Global.h"
+
/*!
\class ShortcutKeyWidget
Widget used to define and key combination for a shortcut. Once it gains
diff --git src/mumble/LCD.cpp src/mumble/LCD.cpp
index e83f692..1435a1a 100644
--- src/mumble/LCD.cpp
+++ src/mumble/LCD.cpp
@@ -35,10 +35,11 @@
#include "ClientUser.h"
#include "Channel.h"
-#include "Global.h"
#include "Message.h"
#include "ServerHandler.h"
+#include "Global.h"
+
QList<LCDEngineNew> *LCDEngineRegistrar::qlInitializers;
LCDEngineRegistrar::LCDEngineRegistrar(LCDEngineNew cons) {
diff --git src/mumble/Log.cpp src/mumble/Log.cpp
index 093f0b3..c6bdbd2 100644
--- src/mumble/Log.cpp
+++ src/mumble/Log.cpp
@@ -36,13 +36,14 @@
#include "AudioOutput.h"
#include "AudioOutputSample.h"
#include "Channel.h"
-#include "Global.h"
#include "MainWindow.h"
#include "NetworkConfig.h"
#include "RichTextEditor.h"
#include "ServerHandler.h"
#include "TextToSpeech.h"
+#include "Global.h"
+
static ConfigWidget *LogConfigDialogNew(Settings &st) {
return new LogConfig(st);
}
diff --git src/mumble/Log_unix.cpp src/mumble/Log_unix.cpp
index 0a18928..c64f3bf 100644
--- src/mumble/Log_unix.cpp
+++ src/mumble/Log_unix.cpp
@@ -32,10 +32,11 @@
#include "mumble_pch.hpp"
#include "Log.h"
-#include "Global.h"
#include "MainWindow.h"
#include "Settings.h"
+#include "Global.h"
+
void Log::postNotification(MsgType mt, const QString &console, const QString &plain) {
// Message notification with balloon tooltips
QString qsIcon;
@@ -92,4 +93,4 @@ void Log::postNotification(MsgType mt, const QString &console, const QString &pl
#endif
postQtNotification(mt, plain);
}
-}
\ No newline at end of file
+}
diff --git src/mumble/LookConfig.cpp src/mumble/LookConfig.cpp
index 5d30a2d..cddd914 100644
--- src/mumble/LookConfig.cpp
+++ src/mumble/LookConfig.cpp
@@ -35,9 +35,10 @@
#include "AudioInput.h"
#include "AudioOutput.h"
-#include "Global.h"
#include "MainWindow.h"
+#include "Global.h"
+
static ConfigWidget *LookConfigNew(Settings &st) {
return new LookConfig(st);
}
diff --git src/mumble/MainWindow.cpp src/mumble/MainWindow.cpp
index eaa4573..65ab1bd 100644
--- src/mumble/MainWindow.cpp
+++ src/mumble/MainWindow.cpp
@@ -46,7 +46,6 @@
#include "Connection.h"
#include "ConnectDialog.h"
#include "Database.h"
-#include "Global.h"
#include "GlobalShortcut.h"
#include "Log.h"
#include "Net.h"
@@ -75,6 +74,8 @@
#include "ConfigDialog_macx.h"
#endif
+#include "Global.h"
+
/*!
\fn void MainWindow::findDesiredChannel()
This function tries to join a desired channel on connect. It gets called
diff --git src/mumble/Messages.cpp src/mumble/Messages.cpp
index a9109bd..77d6a58 100644
--- src/mumble/Messages.cpp
+++ src/mumble/Messages.cpp
@@ -41,7 +41,6 @@
#include "Connection.h"
#include "ConnectDialog.h"
#include "Database.h"
-#include "Global.h"
#include "GlobalShortcut.h"
#include "Log.h"
#include "MainWindow.h"
@@ -55,6 +54,8 @@
#include "VersionCheck.h"
#include "ViewCert.h"
+#include "Global.h"
+
#define ACTOR_INIT \
ClientUser *pSrc=NULL; \
if (msg.has_actor()) \
diff --git src/mumble/NetworkConfig.cpp src/mumble/NetworkConfig.cpp
index 5556e66..0cf14ac 100644
--- src/mumble/NetworkConfig.cpp
+++ src/mumble/NetworkConfig.cpp
@@ -34,10 +34,11 @@
#include "NetworkConfig.h"
-#include "Global.h"
#include "MainWindow.h"
#include "OSInfo.h"
+#include "Global.h"
+
static ConfigWidget *NetworkConfigNew(Settings &st) {
return new NetworkConfig(st);
}
diff --git src/mumble/OSS.cpp src/mumble/OSS.cpp
index 4af1326..2611d8c 100644
--- src/mumble/OSS.cpp
+++ src/mumble/OSS.cpp
@@ -38,9 +38,10 @@
#include <sys/ioctl.h>
#include "User.h"
-#include "Global.h"
#include "MainWindow.h"
+#include "Global.h"
+
#define NBLOCKS 8
class OSSEnumerator {
diff --git src/mumble/Overlay.cpp src/mumble/Overlay.cpp
index 619dd2f..d6f2b79 100644
--- src/mumble/Overlay.cpp
+++ src/mumble/Overlay.cpp
@@ -35,7 +35,6 @@
#include "Channel.h"
#include "ClientUser.h"
#include "Database.h"
-#include "Global.h"
#include "GlobalShortcut.h"
#include "MainWindow.h"
#include "Message.h"
@@ -45,6 +44,8 @@
#include "User.h"
#include "WebFetch.h"
+#include "Global.h"
+
OverlayAppInfo::OverlayAppInfo(QString name, QIcon icon) {
qsDisplayName = name;
qiIcon = icon;
diff --git src/mumble/OverlayClient.cpp src/mumble/OverlayClient.cpp
index c3c408d..82412d1 100644
--- src/mumble/OverlayClient.cpp
+++ src/mumble/OverlayClient.cpp
@@ -34,7 +34,6 @@
#include "OverlayText.h"
#include "User.h"
#include "Channel.h"
-#include "Global.h"
#include "Message.h"
#include "Database.h"
#include "NetworkConfig.h"
@@ -42,6 +41,8 @@
#include "MainWindow.h"
#include "GlobalShortcut.h"
+#include "Global.h"
+
OverlayClient::OverlayClient(QLocalSocket *socket, QObject *p) :
QObject(p),
ougUsers(&g.s.os) {
diff --git src/mumble/OverlayConfig.cpp src/mumble/OverlayConfig.cpp
index 9a45da3..d1f6ea4 100644
--- src/mumble/OverlayConfig.cpp
+++ src/mumble/OverlayConfig.cpp
@@ -34,7 +34,6 @@
#include "OverlayText.h"
#include "User.h"
#include "Channel.h"
-#include "Global.h"
#include "Message.h"
#include "Database.h"
#include "NetworkConfig.h"
@@ -42,6 +41,8 @@
#include "MainWindow.h"
#include "GlobalShortcut.h"
+#include "Global.h"
+
static ConfigWidget *OverlayConfigDialogNew(Settings &st) {
return new OverlayConfig(st);
}
diff --git src/mumble/OverlayEditor.cpp src/mumble/OverlayEditor.cpp
index 0263c1f..2d4dc2c 100644
--- src/mumble/OverlayEditor.cpp
+++ src/mumble/OverlayEditor.cpp
@@ -34,7 +34,6 @@
#include "OverlayText.h"
#include "User.h"
#include "Channel.h"
-#include "Global.h"
#include "Message.h"
#include "Database.h"
#include "NetworkConfig.h"
@@ -42,6 +41,8 @@
#include "MainWindow.h"
#include "GlobalShortcut.h"
+#include "Global.h"
+
OverlayEditor::OverlayEditor(QWidget *p, QGraphicsItem *qgi, OverlaySettings *osptr) :
QDialog(p),
qgiPromote(qgi),
diff --git src/mumble/OverlayEditorScene.cpp src/mumble/OverlayEditorScene.cpp
index 95fe347..a2abb1a 100644
--- src/mumble/OverlayEditorScene.cpp
+++ src/mumble/OverlayEditorScene.cpp
@@ -34,7 +34,6 @@
#include "OverlayText.h"
#include "User.h"
#include "Channel.h"
-#include "Global.h"
#include "Message.h"
#include "Database.h"
#include "NetworkConfig.h"
@@ -42,6 +41,8 @@
#include "MainWindow.h"
#include "GlobalShortcut.h"
+#include "Global.h"
+
OverlayEditorScene::OverlayEditorScene(const OverlaySettings &srcos, QObject *p) : QGraphicsScene(p), os(srcos) {
tsColor = Settings::Talking;
uiZoom = 2;
diff --git src/mumble/OverlayUser.cpp src/mumble/OverlayUser.cpp
index 979af17..5a4a4b9 100644
--- src/mumble/OverlayUser.cpp
+++ src/mumble/OverlayUser.cpp
@@ -35,7 +35,6 @@
#include "User.h"
#include "Channel.h"
#include "ClientUser.h"
-#include "Global.h"
#include "Message.h"
#include "Database.h"
#include "NetworkConfig.h"
@@ -43,6 +42,8 @@
#include "MainWindow.h"
#include "GlobalShortcut.h"
+#include "Global.h"
+
OverlayUser::OverlayUser(ClientUser *cu, unsigned int height, OverlaySettings *osptr) : OverlayGroup(), os(osptr), uiSize(height), cuUser(cu), tsColor(Settings::Passive) {
setup();
updateLayout();
diff --git src/mumble/OverlayUserGroup.cpp src/mumble/OverlayUserGroup.cpp
index f8831d5..f12a113 100644
--- src/mumble/OverlayUserGroup.cpp
+++ src/mumble/OverlayUserGroup.cpp
@@ -35,7 +35,6 @@
#include "User.h"
#include "Channel.h"
#include "ClientUser.h"
-#include "Global.h"
#include "Message.h"
#include "Database.h"
#include "NetworkConfig.h"
@@ -43,6 +42,8 @@
#include "MainWindow.h"
#include "GlobalShortcut.h"
+#include "Global.h"
+
template <typename T>
QRectF OverlayGroup::boundingRect() const {
QRectF qr;
diff --git src/mumble/Overlay_macx.mm src/mumble/Overlay_macx.mm
index dd2a82f..925a9be 100644
--- src/mumble/Overlay_macx.mm
+++ src/mumble/Overlay_macx.mm
@@ -33,9 +33,10 @@
#import <ScriptingBridge/ScriptingBridge.h>
#include <Carbon/Carbon.h>
#include "Overlay.h"
-#include "Global.h"
#include "MainWindow.h"
+#include "Global.h"
+
extern "C" {
#include <xar/xar.h>
}
diff --git src/mumble/Plugins.cpp src/mumble/Plugins.cpp
index 82b3ec6..568b9e7 100644
--- src/mumble/Plugins.cpp
+++ src/mumble/Plugins.cpp
@@ -32,7 +32,6 @@
#include "Plugins.h"
-#include "Global.h"
#include "Log.h"
#include "MainWindow.h"
#include "Message.h"
@@ -40,6 +39,8 @@
#include "../../plugins/mumble_plugin.h"
#include "WebFetch.h"
+#include "Global.h"
+
static ConfigWidget *PluginConfigDialogNew(Settings &st) {
return new PluginConfig(st);
}
diff --git src/mumble/PulseAudio.cpp src/mumble/PulseAudio.cpp
index b1ea1c1..9c32207 100644
--- src/mumble/PulseAudio.cpp
+++ src/mumble/PulseAudio.cpp
@@ -37,11 +37,11 @@
#include <errno.h>
#include <sys/ioctl.h>
-#include "Global.h"
#include "MainWindow.h"
#include "Timer.h"
#include "User.h"
+#include "Global.h"
static const char *mumble_sink_input = "Mumble Speakers";
static const char *mumble_echo = "Mumble Speakers (Echo)";
diff --git src/mumble/RichTextEditor.cpp src/mumble/RichTextEditor.cpp
index ca4baa6..4c7f545 100644
--- src/mumble/RichTextEditor.cpp
+++ src/mumble/RichTextEditor.cpp
@@ -32,10 +32,11 @@
#include "RichTextEditor.h"
-#include "Global.h"
#include "Log.h"
#include "MainWindow.h"
+#include "Global.h"
+
RichTextHtmlEdit::RichTextHtmlEdit(QWidget *p) : QTextEdit(p) {
m_document = new LogDocument(this);
setDocument(m_document);
diff --git src/mumble/ServerHandler.cpp src/mumble/ServerHandler.cpp
index 60125c9..a7dfffc 100644
--- src/mumble/ServerHandler.cpp
+++ src/mumble/ServerHandler.cpp
@@ -37,7 +37,6 @@
#include "Cert.h"
#include "Connection.h"
#include "Database.h"
-#include "Global.h"
#include "MainWindow.h"
#include "Message.h"
#include "NetworkConfig.h"
@@ -47,6 +46,8 @@
#include "SSL.h"
#include "User.h"
+#include "Global.h"
+
ServerHandlerMessageEvent::ServerHandlerMessageEvent(const QByteArray &msg, unsigned int mtype, bool flush) : QEvent(static_cast<QEvent::Type>(SERVERSEND_EVENT)) {
qbaMsg = msg;
uiType = mtype;
diff --git src/mumble/SocketRPC.cpp src/mumble/SocketRPC.cpp
index 928299a..d087e53 100644
--- src/mumble/SocketRPC.cpp
+++ src/mumble/SocketRPC.cpp
@@ -34,10 +34,11 @@
#include "Channel.h"
#include "ClientUser.h"
-#include "Global.h"
#include "MainWindow.h"
#include "ServerHandler.h"
+#include "Global.h"
+
SocketRPCClient::SocketRPCClient(QLocalSocket *s, QObject *p) : QObject(p), qlsSocket(s), qbBuffer(NULL) {
qlsSocket->setParent(this);
diff --git src/mumble/Tokens.cpp src/mumble/Tokens.cpp
index 777ffc3..6446215 100644
--- src/mumble/Tokens.cpp
+++ src/mumble/Tokens.cpp
@@ -33,9 +33,10 @@
#include "Tokens.h"
#include "Database.h"
-#include "Global.h"
#include "ServerHandler.h"
+#include "Global.h"
+
Tokens::Tokens(QWidget *p) : QDialog(p) {
setupUi(this);
diff --git src/mumble/UserEdit.cpp src/mumble/UserEdit.cpp
index 9d7f456..4490047 100644
--- src/mumble/UserEdit.cpp
+++ src/mumble/UserEdit.cpp
@@ -32,10 +32,11 @@
#include "UserEdit.h"
-#include "Global.h"
#include "ServerHandler.h"
#include "User.h"
+#include "Global.h"
+
UserEdit::UserEdit(const MumbleProto::UserList &msg, QWidget *p) : QDialog(p) {
setupUi(this);
diff --git src/mumble/UserInformation.cpp src/mumble/UserInformation.cpp
index 6da8b80..41ba46c 100644
--- src/mumble/UserInformation.cpp
+++ src/mumble/UserInformation.cpp
@@ -34,11 +34,12 @@
#include "Audio.h"
#include "CELTCodec.h"
-#include "Global.h"
#include "Net.h"
#include "ServerHandler.h"
#include "ViewCert.h"
+#include "Global.h"
+
static QString decode_utf8_qssl_string(const QString &input) {
QString i = input;
return QUrl::fromPercentEncoding(i.replace(QLatin1String("\\x"), QLatin1String("%")).toLatin1());
diff --git src/mumble/UserModel.cpp src/mumble/UserModel.cpp
index a702e9d..1393317 100644
--- src/mumble/UserModel.cpp
+++ src/mumble/UserModel.cpp
@@ -36,7 +36,6 @@
#include "ClientUser.h"
#include "Channel.h"
#include "Database.h"
-#include "Global.h"
#include "LCD.h"
#include "Log.h"
#include "MainWindow.h"
@@ -46,6 +45,8 @@
#include "Usage.h"
#include "User.h"
+#include "Global.h"
+
QHash <Channel *, ModelItem *> ModelItem::c_qhChannels;
QHash <ClientUser *, ModelItem *> ModelItem::c_qhUsers;
bool ModelItem::bUsersTop = false;
diff --git src/mumble/UserView.cpp src/mumble/UserView.cpp
index c462bf6..738a7a9 100644
--- src/mumble/UserView.cpp
+++ src/mumble/UserView.cpp
@@ -35,11 +35,12 @@
#include "Channel.h"
#include "ClientUser.h"
#include "Log.h"
-#include "Global.h"
#include "MainWindow.h"
#include "ServerHandler.h"
#include "UserModel.h"
+#include "Global.h"
+
/*!
\fn bool UserView::event(QEvent *evt)
This implementation contains a special handler to display
diff --git src/mumble/VersionCheck.cpp src/mumble/VersionCheck.cpp
index e60a17a..58b3418 100644
--- src/mumble/VersionCheck.cpp
+++ src/mumble/VersionCheck.cpp
@@ -32,10 +32,11 @@
#include "VersionCheck.h"
-#include "Global.h"
#include "MainWindow.h"
#include "WebFetch.h"
+#include "Global.h"
+
VersionCheck::VersionCheck(bool autocheck, QObject *p, bool focus) : QObject(p) {
bSilent = autocheck;
diff --git src/mumble/VoiceRecorder.cpp src/mumble/VoiceRecorder.cpp
index 996b32c..0a9003b 100644
--- src/mumble/VoiceRecorder.cpp
+++ src/mumble/VoiceRecorder.cpp
@@ -36,11 +36,12 @@
#include "AudioOutput.h"
#include "ClientUser.h"
-#include "Global.h"
#include "ServerHandler.h"
#include "../Timer.h"
+#include "Global.h"
+
VoiceRecorder::RecordBuffer::RecordBuffer(const ClientUser *cu,
boost::shared_array<float> buffer, int samples, quint64 timestamp) :
cuUser(cu), fBuffer(buffer), iSamples(samples), uiTimestamp(timestamp) {
diff --git src/mumble/VoiceRecorderDialog.cpp src/mumble/VoiceRecorderDialog.cpp
index ecede42..045bd25 100644
--- src/mumble/VoiceRecorderDialog.cpp
+++ src/mumble/VoiceRecorderDialog.cpp
@@ -34,10 +34,11 @@
#include "VoiceRecorderDialog.h"
#include "AudioOutput.h"
-#include "Global.h"
#include "ServerHandler.h"
#include "VoiceRecorder.h"
+#include "Global.h"
+
VoiceRecorderDialog::VoiceRecorderDialog(QWidget *p) : QDialog(p), qtTimer(new QTimer(this)) {
qtTimer->setObjectName(QLatin1String("qtTimer"));
qtTimer->setInterval(200);
diff --git src/mumble/WASAPI.cpp src/mumble/WASAPI.cpp
index 0e46871..abd59e7 100644
--- src/mumble/WASAPI.cpp
+++ src/mumble/WASAPI.cpp
@@ -32,10 +32,10 @@
#include "WASAPI.h"
#include "WASAPINotificationClient.h"
-#include "Global.h"
#include "Timer.h"
#include "User.h"
+#include "Global.h"
// Now that Win7 is published, which includes public versions of these
// interfaces, we simply inherit from those but use the "old" IIDs.
diff --git src/mumble/WASAPINotificationClient.cpp src/mumble/WASAPINotificationClient.cpp
index 4588778..a64ee71 100644
--- src/mumble/WASAPINotificationClient.cpp
+++ src/mumble/WASAPINotificationClient.cpp
@@ -29,13 +29,14 @@
*/
#include <initguid.h>
-#include <Global.h>
#include <QMutexLocker>
#include "MainWindow.h"
#include <boost/thread/once.hpp>
#include "WASAPINotificationClient.h"
+#include <Global.h>
+
HRESULT STDMETHODCALLTYPE WASAPINotificationClient::OnDefaultDeviceChanged(EDataFlow flow, ERole role, LPCWSTR pwstrDefaultDevice) {
const QString device = QString::fromWCharArray(pwstrDefaultDevice);
diff --git src/mumble/os_macx.mm src/mumble/os_macx.mm
index aa3c2f4..428fa45 100644
--- src/mumble/os_macx.mm
+++ src/mumble/os_macx.mm
@@ -30,10 +30,11 @@
*/
#include "mumble_pch.hpp"
-#include "Global.h"
#include "Overlay.h"
#include "MainWindow.h"
+#include "Global.h"
+
char *os_lang = NULL;
static FILE *fConsole = NULL;

View file

@ -1,11 +0,0 @@
--- src/mumble/TextToSpeech_unix.cpp.orig 2017-02-14 16:33:58.775742063 +0100
+++ src/mumble/TextToSpeech_unix.cpp 2017-02-14 16:34:22.172484062 +0100
@@ -33,7 +33,7 @@
#include "TextToSpeech.h"
#ifdef USE_SPEECHD
-#include <libspeechd.h>
+#include <speech-dispatcher/libspeechd.h>
#endif
#include "Global.h"

View file

@ -1,11 +0,0 @@
--- src/mumble/AudioOutput.cpp.orig 2018-10-29 00:43:02.953895662 +0100
+++ src/mumble/AudioOutput.cpp 2018-10-29 00:43:49.407481605 +0100
@@ -431,7 +431,7 @@
top[2] = 0.0f;
}
- if (std::abs<float>(front[0] * top[0] + front[1] * top[1] + front[2] * top[2]) > 0.01f) {
+ if (std::abs(front[0] * top[0] + front[1] * top[1] + front[2] * top[2]) > 0.01f) {
// Not perpendicular. Assume Y up and rotate 90 degrees.
float azimuth = 0.0f;

View file

@ -1,48 +1,26 @@
# Template file for 'mumble'
pkgname=mumble
version=1.2.19
revision=18
hostmakedepends="Ice pkg-config protobuf qt-host-tools qt-qmake"
version=1.3.0
revision=1
build_style=qmake
configure_args="CONFIG+=bundled-celt CONFIG+=no-bundled-opus CONFIG+=no-update
CONFIG+=no-bundled-speex CONFIG+=no-g15 CONFIG+=no-xevie CONFIG+=pulseaudio
CONFIG+=no-embed-qt-translations CONFIG+=no-oss"
hostmakedepends="Ice pkg-config protobuf qt5-host-tools qt5-qmake python3"
makedepends="Ice-devel MesaLib-devel avahi-compat-libs-devel boost-devel
libcap-devel libressl-devel libsndfile-devel opus-devel protobuf-devel
pulseaudio-devel qt-devel speech-dispatcher-devel speex-devel"
depends="desktop-file-utils qt-plugin-sqlite"
pulseaudio-devel qt5-devel qt5-svg-devel speech-dispatcher-devel speex-devel"
depends="desktop-file-utils qt5-plugin-sqlite"
short_desc="Open source, low-latency, high quality voice chat for gaming"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="BSD-3-Clause"
homepage="http://mumble.sourceforge.net/"
distfiles="https://github.com/mumble-voip/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=f047fb707ad93948b0bc913ec0a89cd5480d87e840c4ff2519608fc8a2dac0e8
checksum=9a8de2547344962a81c00c37b5d8bd5a371bb685fa36cf03a3f134e37c79b80d
CXXFLAGS="-std=c++11"
do_configure() {
if [ "$CROSS_BUILD" ]; then
for i in ${XBPS_CROSS_BASE}/usr/include/Qt*; do
CXXFLAGS+=" -I$i"
done
fi
# Needs bundled celt for some reason
qmake-qt4 -recursive main.pro \
CONFIG+="bundled-celt no-bundled-opus no-update no-bundled-speex no-g15 \
no-xevie pulseaudio no-embed-qt-translations no-oss" \
DEFINES+="PLUGIN_PATH=/usr/lib/mumble" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" \
PREFIX=/usr \
LIB=/usr/lib \
QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX \
QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LFLAGS="${LDFLAGS}"
# qmake-qt4 ignores CXXFLAGS and LDFLAGS thus patch the Makefiles
sed -i */Makefile* */*/Makefile* \
-e "s;^\(LFLAGS.*=.*\);& $LDFLAGS;" \
-e "s;^\(CXXFLAGS.*=.*\);& $CXXFLAGS;"
}
do_build() {
make ${makejobs} release \
CC="$CC" CXX="$CXX" LINK="$CXX"
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-svg-devel"
fi
do_install() {
vlicense LICENSE