Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-04-16 22:02:25 +0300
committerRobert Adam <dev@robert-adam.de>2021-04-16 22:05:52 +0300
commit923045ac6029bc7433c60ce2fad5a35e025beedd (patch)
treeabf6a4001f7b795242e49b619fc3ffb6c0623633 /src/mumble/WASAPI.cpp
parentd4a5fc1047837ce2018a6381e0e74a51f65b2a8f (diff)
FORMAT: Run clang-format 10 on all source files
Diffstat (limited to 'src/mumble/WASAPI.cpp')
-rw-r--r--src/mumble/WASAPI.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/mumble/WASAPI.cpp b/src/mumble/WASAPI.cpp
index bdc3d1ee6..91f071f14 100644
--- a/src/mumble/WASAPI.cpp
+++ b/src/mumble/WASAPI.cpp
@@ -208,8 +208,8 @@ void WASAPIInputRegistrar::setDeviceChoice(const QVariant &choice, Settings &s)
}
bool WASAPIInputRegistrar::canEcho(EchoCancelOptionID echoOptionIDs, const QString &outputSystem) const {
- return (echoOptionIDs == EchoCancelOptionID::SPEEX_MIXED
- || echoOptionIDs == EchoCancelOptionID::SPEEX_MULTICHANNEL) && (outputSystem == name);
+ return (echoOptionIDs == EchoCancelOptionID::SPEEX_MIXED || echoOptionIDs == EchoCancelOptionID::SPEEX_MULTICHANNEL)
+ && (outputSystem == name);
}
bool WASAPIInputRegistrar::canExclusive() const {
@@ -485,8 +485,9 @@ void WASAPIInput::run() {
qWarning("WASAPIInput: Mic Initialize failed: hr=0x%08lx", hr);
if (hr == E_ACCESSDENIED) {
WASAPIInputRegistrar::hasOSPermissionDenied = true;
- Global::get().mw->msgBox(tr("Access to the microphone was denied. Please check that your operating system's "
- "microphone settings allow Mumble to use the microphone."));
+ Global::get().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;
}
@@ -885,10 +886,11 @@ void WASAPIOutput::run() {
int ns = 0;
unsigned int chanmasks[32];
QMap< DWORD, float > qmVolumes;
- bool lastspoke = false;
- REFERENCE_TIME bufferDuration = (Global::get().s.iOutputDelay > 1) ? (Global::get().s.iOutputDelay + 1) * 100000 : 0;
- bool exclusive = false;
- bool mixed = false;
+ bool lastspoke = false;
+ REFERENCE_TIME bufferDuration =
+ (Global::get().s.iOutputDelay > 1) ? (Global::get().s.iOutputDelay + 1) * 100000 : 0;
+ bool exclusive = false;
+ bool mixed = false;
CoInitialize(nullptr);
@@ -1015,7 +1017,8 @@ void WASAPIOutput::run() {
iMixerFreq = pwfx->nSamplesPerSec;
qWarning("WASAPIOutput: Periods %lldus %lldus (latency %lldus)", def / 10LL, min / 10LL, latency / 10LL);
- qWarning("WASAPIOutput: Buffer is %dus (%d)", (bufferFrameCount * 1000000) / iMixerFreq, Global::get().s.iOutputDelay);
+ qWarning("WASAPIOutput: Buffer is %dus (%d)", (bufferFrameCount * 1000000) / iMixerFreq,
+ Global::get().s.iOutputDelay);
hr = pAudioClient->GetService(__uuidof(IAudioRenderClient), (void **) &pRenderClient);
if (FAILED(hr)) {