Commit Graph

7765 Commits

Author SHA1 Message Date
Davide Beatrici
5094de66e0 Azure Pipelines: restore macOS build
It was removed in bb6416c013, due to the warnings appearing because of the deprecated stuff.
2019-10-10 00:11:24 +02:00
Davide Beatrici
ba217fd660 macx/osax: don't build for deprecated i386 architecture
https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
2019-10-10 00:11:24 +02:00
Davide Beatrici
e9029a904e Remove "compat", i386 is not supported anymore
"compat" was a very small and simple program; its purpose was to show a message informing the user that the Mumble binary is only for x86_64 processors.

The i386 architecture is not supported in Xcode 10, meaning that we cannot compile it anymore.

https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
2019-10-10 00:11:16 +02:00
Davide Beatrici
1571d91c0f overlay_gl/init_mac.c: remove code based on CGDisplayIsCaptured()
The function was removed and there is no replacement: https://developer.apple.com/documentation/coregraphics/1562061-cgdisplayiscaptured

Retrieving the resolution directly from OpenGL is probably better anyway.
2019-10-09 23:35:47 +02:00
Davide Beatrici
57a8f3e48b Overlay: replace deprecated GetFrontProcess() and GetProcessPID()
Both deprecated in macOS 10.9.

https://developer.apple.com/documentation/applicationservices/1501050-getfrontprocess
https://developer.apple.com/documentation/applicationservices/1500992-getprocesspid
2019-10-09 23:35:47 +02:00
Davide Beatrici
796eabaf17 GlobalShortcuts_macx.mm: replace deprecated GetProcessForPID() and CopyProcessName()
Both deprecated in macOS 10.9.

https://developer.apple.com/documentation/applicationservices/1501069-getprocessforpid
https://developer.apple.com/documentation/applicationservices/1501067-copyprocessname
2019-10-09 23:35:47 +02:00
Davide Beatrici
9ab5fe97b6 Set target macOS version to 10.9
"libstdc++" was deprecated with Xcode 8 and is not supported in Xcode 10.

The new library is "libc++", available with macOS 10.9+.

https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
2019-10-09 23:35:41 +02:00
Davide Beatrici
523d40c2b6
Merge PR #3828: Remove DirectSound implementation 2019-10-08 22:11:32 +02:00
Davide Beatrici
e774bd7f78
Merge PR #3835: Murmur.ice: add missing value to UserInfo 2019-10-08 19:59:53 +02:00
Davide Beatrici
83a88847f9 Murmur.ice: add missing value to UserInfo
Mumble.com kindly reported that the getRegistration() Ice method fails with an "enumerator out of range" error, due to a missing value in the "UserInfo" enum.

The value was added to Murmur in 813aceb854 and then renamed and moved in 5131d9e303.
2019-10-08 19:22:10 +02:00
Davide Beatrici
4e0706cbdb
Merge PR #3833: Fix dangling else warning in Server::msgACL() 2019-10-07 09:45:53 +02:00
Davide Beatrici
efb3c83512 Fix dangling else warning in Server::msgACL()
This commit fixes a warning encountered today on FreeBSD, probably because Clang was updated and now `-Wdangling-else` is enabled by default.

Messages.cpp:1330:5: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
                                foreach(int id, pg->members()) {
                                ^
2019-10-07 08:49:47 +02:00
Davide Beatrici
fc02822fb3
Merge PR #3832: Replace deprecated qSort() with std::sort() 2019-10-07 07:54:41 +02:00
Davide Beatrici
90c93fa7a5 Replace deprecated qSort() with std::sort()
5957f245c6

I accidentally forgot to search for "qSort" in files when I created 3132f993d8.

This commit replaces the qSort() instances I missed.
2019-10-07 06:27:52 +02:00
Davide Beatrici
49c33c5613
Merge PR #3829: Fix QPalette::Background is deprecated 2019-10-06 21:26:07 +02:00
Robert Adam
ff1591b64d Replace QPalette::Background with QPalette::Window in AudioNoiseWidget::paintEvent()
I just had a FreeBSD build fail because AudioStats.cpp is using QPalette::Background, which apparently has been declared deprecated.

AudioStats.cpp:213:45: error: 'Background' is deprecated: Use QPalette::Window instead [-Werror,-Wdeprecated-declarations]
        paint.fillRect(rect(), pal.color(QPalette::Background));
                                                   ^

The Qt docs advise to use QPalette::Window instead (see https://doc.qt.io/qt-5/qpalette.html), so I went ahead and changed the code accordingly.
2019-10-06 20:27:59 +02:00
Davide Beatrici
9aaf3ccb67
Merge PR #3830: Fix dangling else warning in ConnectDialog::OnSortChanged() 2019-10-06 20:27:29 +02:00
Davide Beatrici
0893c6c361 Fix dangling else warning in ConnectDialog::OnSortChanged()
This commit fixes a warning encountered today on FreeBSD, probably because Clang was updated and now '-Wdangling-else' is enabled by default.

ConnectDialog.cpp:1178:3: error: add explicit braces to avoid dangling else [-Werror,-Wdangling-else]
                foreach(ServerItem *si, qlItems)
                ^
2019-10-06 18:19:37 +02:00
Davide Beatrici
2a3e5f9317 Translation update
Updating 'mumble_en.ts'...
    Found 1717 source text(s) (14 new and 1703 already existing)
    Removed 15 obsolete entries
2019-10-05 08:10:58 +02:00
Davide Beatrici
66dd17bcf4 Settings: remove DirectSound stuff 2019-10-05 08:10:58 +02:00
Davide Beatrici
ad42a468d7 ASIOInput.cpp: remove reference to DirectSound 2019-10-05 08:10:58 +02:00
Davide Beatrici
26f3de467c main.cpp: remove reference to DirectSound 2019-10-05 08:10:58 +02:00
Davide Beatrici
01afd99fc4 INSTALL: undocument 'no-directsound' option 2019-10-05 08:10:58 +02:00
Davide Beatrici
7042572235 Remove references to DirectSound in UI
The suggestion to use DirectSound was valid only for Windows versions prior to Vista, because WASAPI was introduced with it.

Fortunately DirectSound didn't appear in the UI as an option in case WASAPI was detected, hopefully we didn't mislead users into thinking that DirectSound is better than WASAPI.

Also, the description was suggesting to use DirectSound on non-Windows operating systems.
2019-10-05 08:10:58 +02:00
Davide Beatrici
7977a5c465 Remove DirectSound implementation code
DirectSound was the first audio backend supported by Mumble, in 2005.

Windows Vista introduced a brand new audio stack called WASAPI, which entirely replaced DirectSound. Support for it was added in 9a018148bb, 6bef650e57 and 677a39951f.

This commit entirely removes our DirectSound implementation, not needed anymore because we are dropping support for Windows XP in 1.4.
2019-10-05 08:08:55 +02:00
Davide Beatrici
79435e6473
Merge PR #3810: Azure Pipelines: get Mumble version with mumble-version.py 2019-10-04 06:57:09 +02:00
Davide Beatrici
f6fc30db22 Azure Pipelines: get Mumble version with mumble-version.py
This commit changes the Linux build script so that it retrieves the full Mumble version using mumble-version.py.

Previously we were using the first 7 characters of the commit hash as version, which is not very descriptive.
2019-10-04 06:07:47 +02:00
Davide Beatrici
46776df2b0 scripts: add mumble-version.py
Copied from our current build environment, the header has been changed to match the one in the other scripts.

mumble-version.py determines the full Mumble version based on multiple variables, such as the current commit hash and the latest tag.

There's no reason to keep it in the build environment repository (mumble-releng), because it's supposed to be run inside the Mumble repository and doesn't depend on anything from the build environment.
2019-10-04 06:07:44 +02:00
Davide Beatrici
49693a1651
Merge PR #3824: Add include guards for builds without dbus 2019-10-03 20:59:53 +02:00
c_14
6ae06f41d9 Add include guards for builds without dbus
This commit adds include guards around a QDBusInterface include added in
commit 15831dbca without the appropriate guards.
2019-10-03 17:13:13 +02:00
Davide Beatrici
df62e500e1
Merge PR #3820: ServerHandler: Use the SRV resolved port for UDP connections 2019-09-30 23:53:38 +02:00
Max Weber
f1fff3bc7d ServerHandler: Use the SRV resolved port for UDP connections 2019-09-30 15:13:02 -06:00
Davide Beatrici
1c5798a4b1
Merge PR #3819: 3rdparty: update 'minhook-src' submodule 2019-09-30 07:55:02 +02:00
Davide Beatrici
1ecd30025f 3rdparty: update 'minhook-src' submodule
We merged 3 pull requests in our fork:

- "Added CLang support": https://github.com/TsudaKageyu/minhook/pull/51
- "Add CMake support": https://github.com/TsudaKageyu/minhook/pull/58
- "Add <intrin.h> for MSVC": https://github.com/TsudaKageyu/minhook/pull/75
2019-09-30 06:51:26 +02:00
Davide Beatrici
0cd23554a7
Merge PR #3316: PulseAudio: don't send empty data into the stream if audio output is not enabled 2019-09-28 21:28:20 +02:00
Davide Beatrici
8fe8d70ea7 PulseAudio: Don't send empty data into the stream if there's no audio to send
https://maemo.org/api_refs/5.0/5.0-final/pulseaudio/paplay_8c-example.html

In the example the stream writer callback does nothing and returns in case there is no data to send.

Our code, instead, creates a buffer, fills it with zeroes and writes it to the stream if audio output is not enabled.

This commit changes the callback function's code so that it returns immediately in such case.

The change has been tested by setting an underflow callback function (using pa_stream_set_underflow_callback()) and checking whether underflows occurred.
2019-09-28 20:41:08 +02:00
Davide Beatrici
d2ea0a131f
Merge PR #3815: Enabled sorting of shortcuts function list 2019-09-27 05:10:27 +02:00
Robby Zampino
1bec7c9e10 Enabled sorting of shortcuts function list 2019-09-26 20:33:04 -06:00
Davide Beatrici
a07bb2f146
Merge PR #3675: Added DBus calls to activate and deactivate push to talk 2019-09-26 08:34:42 +02:00
Robby Zampino
03dbea56f6 Added DBus calls to activate and deactivate push to talk 2019-09-26 00:04:07 -06:00
Davide Beatrici
df7d3c716c
Merge PR #3813: Update Opus to version 1.3.1 2019-09-26 07:11:40 +02:00
Davide Beatrici
65d395f898 3rdparty/opus-build: update sources 2019-09-26 06:10:41 +02:00
Davide Beatrici
32f9144287 Update opus-src submodule (Opus v1.3.1)
https://people.xiph.org/~jm/opus/opus-1.3
2019-09-26 06:09:52 +02:00
Davide Beatrici
e34b00a537
Merge PR #3811: fixed (g++) warning about implicit fallthrough 2019-09-25 20:38:59 +02:00
Robert Adam
d0f4ee1c0f fixed (g++) warning about implicit fallthrough 2019-09-25 17:01:36 +02:00
Davide Beatrici
61c838a863
Merge PR #3657: Remove unneeded null pointer checks 2019-09-25 05:10:27 +02:00
Davide Beatrici
737fec3ac0
Merge PR #3660: BonjourClient, OverlayClient: convert raw pointers to QScopedPointer(s) 2019-09-25 04:41:24 +02:00
hbarker
615c72b17d Remove unneeded null pointer checks
'delete' handles null pointers: https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
2019-09-25 03:57:46 +02:00
hbarker
e2b15e5aea OverlayClient: convert raw pointers to QScopedPointer(s) 2019-09-25 03:51:12 +02:00
hbarker
a0c92b5463 BonjourClient: convert raw pointers to QScopedPointer(s) 2019-09-25 03:51:04 +02:00