Skip to content
Permalink
Browse files

Merge PR #3572: WASAPI: print log message when the OS blocks access t…

…o the microphone
  • Loading branch information...
davidebeatrici committed Jan 13, 2019
2 parents 4ed7af9 + b01639d commit b98156653846a13a11d0267a3ce677f989fcc588
Showing with 14 additions and 2 deletions.
  1. +5 −1 src/mumble/WASAPI.cpp
  2. +9 −1 src/mumble/mumble_en.ts
@@ -7,8 +7,9 @@

#include "WASAPI.h"
#include "WASAPINotificationClient.h"
#include "Global.h"

#include "Global.h"
#include "MainWindow.h"

// Now that Win7 is published, which includes public versions of these
// interfaces, we simply inherit from those but use the "old" IIDs.
@@ -456,6 +457,9 @@ void WASAPIInput::run() {
hr = pMicAudioClient->Initialize(AUDCLNT_SHAREMODE_SHARED, AUDCLNT_STREAMFLAGS_EVENTCALLBACK, 0, 0, micpwfx, NULL);
if (FAILED(hr)) {
qWarning("WASAPIInput: Mic Initialize failed: hr=0x%08lx", hr);
if (hr == E_ACCESSDENIED) {
g.mw->msgBox(tr("Access to the microphone was denied. Please check that your operating system's microphone settings allow Mumble to use the microphone."));
}
goto cleanup;
}
}
@@ -9079,10 +9079,18 @@ Please contact your server administrator for further information.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WASAPIInput</name>
<message>
<location filename="WASAPI.cpp" line="+461"/>
<source>Access to the microphone was denied. Please check that your operating system&apos;s microphone settings allow Mumble to use the microphone.</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>WASAPISystem</name>
<message>
<location filename="WASAPI.cpp" line="+241"/>
<location line="-219"/>
<source>Default Device</source>
<translation type="unfinished"></translation>
</message>

0 comments on commit b981566

Please sign in to comment.
You can’t perform that action at this time.