Commit Graph

5238 Commits

Author SHA1 Message Date
Stefan Hacker
bf2a2cd67c Add /Zo to release flags for improved optimized build debugging
Updated compiler.pri to make use of the new /Zo
option to improve our debugging capabilities on optimized
builds. This flag is officially supported since
Visual Studio 2013 Update 3.
2015-05-15 10:10:20 +02:00
Stefan Hacker
f6e17feace Drop support for VC10 by updating compiler.pri for VC12 default flags
This patch updates the compiler flags under the assumption
of us using VC12. This mostly consists of dropping flags
this compiler already set by default as well as removing
a conditional. This might even still build from this point
on VC10 support is considered to be dropped.
2015-05-15 10:01:54 +02:00
Kissaki
3282887fca Fix access violations on exit with Overlay active
* Prevent duplicate object deletion triggered by disconnect signal upon us
deleting an overlay client.
2015-05-14 15:24:39 +02:00
Nikolaj Dombrow
de27cd7b72 Add RTMP as an allowed protocol for links 2015-05-14 11:05:20 +02:00
Will Tange
ab78e6c90c Sensible warning message
Might as well show a meaningful message, just in case.
2015-05-12 18:58:59 +02:00
Will Tange
78604d85f0 Connect button should be disabled by default
Since ConnectDialog::accept calls are refused if no item is selected,
and the server last connected to is selected in ConnectDialog::timeTick
(after initialisation), it doesn't make sense for the Connect button
to be enabled before a server is selected.
2015-05-12 18:58:59 +02:00
Will Tange
0fdb7c17e5 Mark shebanged files as executable 2015-05-12 18:51:23 +02:00
Evan Purkhiser
82ca800803 Follow XDG directory spec for RPC socket & overlay pipe
If the XDG_RUNTIME_DIR environment variable is present the overlay
pipe and RPC socket will be created at..

    $XDG_RUNTIME_DIR/MumbleSocket
    $XDG_RUNTIME_DIR/MumbleOverlayPipe
2015-05-11 20:19:55 +02:00
Stefan Hacker
a96a8e79a2 Add deprecation warning for building client with Qt 4
Since we plan to drop Qt 4 support for building the client
soon'ish add an explicit 'qt4-legacy-compat' flag that has
to be set to still build the client with qt 4. If the flag
is not set we error out of the build to ensure the maintainer
has to actively aknowledge using a legacy version. Even
when the flag is set we still show a warning as a reminder.
2015-05-10 10:39:15 +02:00
Charles Ricketts
5b104e09c0 PulseAudio: Add options to disable attenuating applications on other audio outputs and to disable attenuation of loopback modules.
Before this commit, Mumble indiscriminately attenuates applications.
A simple example: it would attenuate applications that were set to output
to HDMI -- something that wasn't always desirable. My HDMI wouldn't need
to be attenuated because I am able to physically distinguish between sound
coming from either my HDMI or my laptop and "tune in" accordingly.

A more advanced use case is my PulseAudio streaming setup. I create two
additional sinks: "stream" and "stream_spkr." The "stream" sink is used
when I want to send audio from an application to my stream but not to
my speakers/headset (i.e., background music or something). In this case,
before this commit Mumble would attenuate my program playing the
background music. If I am running Mumble off-stream (which I often am),
this leads the background music volume fluctuating for seemingly no reason.

The second sink, "stream_spkr" routes both to "stream" and my
speakers/headset via two module-loopbacks. In this way, anything I attach
to stream_spkr can be heard both by my viewers and myself.

The option to include attenuation on loopback modules is for advanced
configurations. Loopback modules are used to route audio, usually between
a sink monitor and a sink. Sometimes it might be beneficial to attenuate a
loopback module that goes into Mumble's sink. Sometimes, however it's
inconvenient such as in the case where a user moves an application to
another sink that uses a loopback to Mumble's sink in order to specifically
have Mumble ignore attenuation on that application. But, if the loopback
that carries the non-Mumble sink's audio back to Mumble's sink is attenuated
then there would still be indirect attenuation of that application. In my
configuration, an example is the loopback from stream_spkr.monitor to the
physical speakers.

Only PulseAusio is supported in this patch, but this functionality could
potentially be extended to other audio systems.
2015-05-10 00:45:35 +02:00
MumbleTransifexBot
dc9ea2cfad Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 33 languages
2015-05-09 22:11:41 +02:00
Joël Troch
c3236b3055 Fix for Windows 10 detection in murmur
Murmur now uses Mumble's appcompat.manifest so it
can query and report its host operating system
correctly on Windows 10. Previously it reported
as Windows 8 on that platform.
2015-05-09 15:09:54 +02:00
Evan Purkhiser
c005fe3486 Remove tabs from the project file 2015-05-09 10:51:37 +02:00
Stefan Hacker
4e459a9b1f Do not consider a default hostname from clipboard to be custom
The connect dialog has the capability to pre-fill itself from
mumble:// style URLs in the users clipboard. If those are not
given a custom ?title= argument the name was defaulted to the
host name which caused them to be considered custom by the
edit dialog. This patch resolves this issue.
2015-05-07 23:20:52 +02:00
Stefan Hacker
78d0db8d6a Fix title from URLs not being picked up in connect dialog.
Fixing the connect dialog after the Qt 5 transition wasn't
done correctly. The QUrlQuery class for parsing the url was
instantiated before the url itself was extracted from the
mime data and hence was always empty. This probably slipped
by as the query data is only used for setting the name of
the server item from the '?title=' part of the url.
2015-05-07 23:20:52 +02:00
Nik Johnson
b2282e7402 Move label to bottom of connect dialog and default it to hostname
This patch improves the usability of the connect dialog by
moving the server label to the bottom of the dialog and making
it track the hostname. This way the user gets a sensible default
while also being able to manually edit it afterwards.

Once the user edits the label it is seen as custom and will no
longer track the server address until the label field is
manually cleared by the user.
2015-05-07 23:18:58 +02:00
Stefan Hacker
2c0d37f9ef Switch from old speex to new speex and speexdsp
The speex library has been split into a codec part
(speex) and a dsp part (speex-dsp). As we still need
the codec for compatibility with 3rd party clients
only sending speex but still want the updates that
went into the dsp and codec since then this patch
modifies our build to enable that. To achieve that
we combined the two libraries back together. Doing
it this way might brittle but is only a temporary
solution until we can actually drop the codec part.
2015-05-06 20:22:11 +02:00
Tim Cooper
263a2928ca fix minor spelling mistake
Continous -> Continuous
2015-05-06 00:53:13 +02:00
Stefan Hacker
ad1ed22114 Prevent OverlayClient destructor from hanging on disconnect
Limit the maximum time a clean disconnect may take to 1s. Previously
our GUI thread could become semi-permanently blocked.
2015-04-30 23:09:52 +02:00
MumbleTransifexBot
9a2c0ee2b6 Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 33 languages
2015-04-29 20:08:02 +02:00
Lartza
f1eb642588 Add Finnish to languages in Product.wxs 2015-04-29 17:45:02 +02:00
Lartza
b2b3106f07 Fix typo in Finnish translation
Possibly fixing "Error applying transforms." when trying to start the installer in Finnish Windows
2015-04-29 17:44:52 +02:00
Patrick Matthäi
0f072ef055 Add missing LSB Description to the init script.
Fixes SF bug #863 .
2015-04-27 22:58:12 +02:00
Christopher Knadle
e24cfe6cb8 Add Keywords to mumble.desktop to satisfy Lintian warning 2015-04-26 00:02:13 +02:00
Mikkel Krautz
0128e7ddab installer: include both x86 and x64 variants of D3DCompiler_XX.dll.
This is only possible for now because x86 uses the D3DCompiler_43.dll
and x64 uses the D3DCompiler_47.dll.

If we need both to use the same version, we'll need a more complex
directory structure.

But let's tackle that then.
2015-04-23 17:55:56 +02:00
Jordan Cristiano
445cdf0e10 Do not set the Mumble process's priority to High on Windows.
Setting Mumble's priority class higher than the games
is a bad behavior which can cause inconsistency for
input timing in games such as Team Fortress 2.
2015-04-22 22:15:38 +02:00
Ferdinand Thiessen
67ed33f328 Do not show TTS options when speechd is disabled.
A new define, USE_NO_TTS is added. For now, this define
is set when no TTS engine is available on Linux.

Fixes #961
2015-04-22 22:10:18 +02:00
x89
57396fac2f Add systemd service file for Murmur. 2015-04-22 22:03:19 +02:00
MumbleTransifexBot
18e5ecb2c7 Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 32 languages
2015-04-22 22:01:52 +02:00
Mikkel Krautz
2eef8ba0d9 g15helper: force 32-bit x86 compilation.
The g15helper tool links against a static library
provided by Logitech. It is only available for
32-bit x86.

Use our new toolchain mechanism to enable g15helper
to be enabled for x64 builds.
2015-04-22 22:00:29 +02:00
Mikkel Krautz
d63fc6d3cf Use the index variable instead of hardcoding 0 in overlay_exe's GetCommandLineArgs(). 2015-04-22 21:46:55 +02:00
Mikkel Krautz
2379f1fa0e Use non-negative error constants in overlay_exe.h.
The Win32 ExitProcess() API takes an UINT, and we
used to pass negative values to it.

Obviously, those negative values can be represented
just fine in an unsigned integer, but for the sake
of following the API and to avoid future confusion
this commit changes the error constants used by
the overlay helper program to be non-negative.
2015-04-22 21:15:45 +02:00
Mikkel Krautz
9a18c77da1 Re-work command line parsing in the Windows overlay helper executable.
The old parsing was error-prone and hard to read.

We introduce the GetCommandLineArgs() function that returns
he program's arguments as a vector of strings.

Using this function makes the code that processes the arguments
much simpler and easier to understand.
2015-04-22 21:15:30 +02:00
Mikkel Krautz
8e333b3157 OverlayPrivateWin: add qFatal calls for invalid states.
Many of our slots determine which variables to use depending
on the sender of the signal. However, they weren't very careful
about any possible invalid states.

This change makes sure we fail if we're in invalid state.
2015-04-22 21:03:57 +02:00
Mikkel Krautz
a2be91563b Fix missing comma in license header in overlay_exe.cpp. 2015-04-22 21:03:56 +02:00
Mikkel Krautz
b29df64a04 Rename 'missing magic argument' error to 'no arguments' in overlay helper.
Now that the helper takes more than one argument, the
old name is not descriptive enough.
2015-04-22 21:03:55 +02:00
Mikkel Krautz
6c446e4ead Ensure overlay helpers exit when the Mumble process terminates.
Normally, Mumble itself will terminate the helper processes.
But if Mumble crashes, or is manually killed by the user, it
will not be able to terminate the helper processes itself.

In order to fix this, we create a way for the helpers to know
when their parent process has terminated.

This is implemented by creating an inheritable process handle
in Mumble, and passing its value to the helpers.

The helpers then WaitForSingleObject() on the parent handle, and
exits with status code 0 if it the WaitForSingleObject() call
returns successfully.
2015-04-22 21:03:53 +02:00
Mikkel Krautz
b1880294df Add config options for disabling specific overlay helpers.
This adds hidden config options for disabling arch-specific
overlay helpers.

This is useful for people that only want the overlay for a
specific architecture, and also for debugging and troubleshooting
arch-specific overlay problems.
2015-04-22 21:03:52 +02:00
Mikkel Krautz
bb0ccc4629 Add restart limiter to OverlayPrivateWin to avoid bombing the system with process spawns.
We need this in case there's a bug in one of the overlay helpers.
Without this, we would restart a crashed helper immediately. If this
bug is triggered every time the helper is run, we'd get into an infinite
restart loop, potentially making the host computer unresponsive.
2015-04-22 21:03:51 +02:00
Mikkel Krautz
8e31de788f Log overlay helper process errors in OverlayPrivateWin.
OverlayPrivateWin used to only listen for process
termination. Technically, this should work just fine.

This change makes OverlayPrivateWin listen for process
errors as well, by subscribing to the error() signal
of the QProcess of each of our helpers.

The idea is that this could provide us helpful error
messages when troubleshooting issues where overlay
helpers are exiting untimely.
2015-04-22 21:03:49 +02:00
Mikkel Krautz
3018c5e90a Handle WM_CLOSE messages in overlay helper.
When Qt terminates a QProcess via the terminate()
method, it sends a WM_CLOSE message.

However, the overlay helper did not know of WM_CLOSE,
so it would quietly ignore it.

This commit teaches the overlay helper to exit on
WM_CLOSE.
2015-04-22 21:03:48 +02:00
Mikkel Krautz
0e358bff80 Check if the host supports 64-bit processes before attempting to start the x64 helper process.
This change adds a function, canRun64BitPrograms() to OverlayWinPrivate.

If the program is built for x64, the function unconditionally
returns true.

If the program is built for x86, the function uses a call to the
runtime-resolved kernel32!IsWow64Process to determine whether or
not the system is x64 capable.

This functionality is needed to avoid spawning the x64 helper in
case the system cannot support it. Doing so without care, like we
did previously, could be fatal because Mumble immediately restarts
the helper process if it terminates. This would presumably make the
host computer unusable.
2015-04-22 21:03:47 +02:00
Mikkel Krautz
21a1519064 Log path to the executable of the helper process in onHelperProcessExited().
Without this, we do not know which helper process actually exited
when looking at the Mumble log.
2015-04-22 21:03:45 +02:00
Mikkel Krautz
529f76f459 Add the x86_64 Windows overlay to the installer.
This change adds the mumble_ol_x64.dll overlay DLL to
the installer, along with mumble_ol_x64.exe, the new
x64 overlay helper.
2015-04-22 21:03:44 +02:00
Mikkel Krautz
8d3c1f7fcc Add support for using both x86 and x86_64 overlays in Overlay_win.cpp.
This copies the mechanisms we already have in place for
the x86 overlay helper, and uses them for the x64 one.
2015-04-22 21:03:42 +02:00
Mikkel Krautz
d609879695 Use arch-specific shared memory regions in the Windows overlay.
Vtable offsetes is almost all that we store in the shared memory,
and they vary by architecture.

So, don't share the memory between arches. Instead, crate
arch-specific shared memory regions.
2015-04-22 21:03:41 +02:00
Mikkel Krautz
3a6c4f0fee Build two separate Windows overlays - one for x86 and one for x86_64.
This splits fx11 into an x86 variant and an x64 variant.
This creates effects11_x86.lib and effects11_x64.lib, instead
of the single effects11.lib we had previously.

The minhook build is also tweaked. However, since minhook
is only used on x86_64, it is only built for x86_64.
Consequently, the library is still called minhook.lib.

The overlay itself is split into mumble_ol.dll and mumble_ol.exe
for x86, and mumble_ol_x64.dll and mumble_ol_x64.exe for x86_64.
2015-04-22 21:03:39 +02:00
Mikkel Krautz
4a478f7f04 Add force-x86-toolchain and force-x86_64-toolchain to compiler.pri.
These CONFIG options allow a .pro file to select which toolchain
its target should be built with.

To force a target to always be built for x86 (in both x86 and
x86_64 build environments), set CONFIG+=force-x86-toolchain.

The same thing is possible with force-x86_64-toolchain.
2015-04-22 21:03:37 +02:00
Mikkel Krautz
5d41a78690 Add toolchain files. To be used by 32-bit on 64-bit overlay (and vice versa). 2015-04-22 21:03:36 +02:00
MumbleTransifexBot
c43e62a5a0 Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 32 languages
2015-04-21 20:10:30 +02:00