diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2017-03-12 16:34:52 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2017-03-15 00:56:53 +0300 |
commit | 0b4d204f26243ae0e156eae93299ff9e83d75a7f (patch) | |
tree | 6492f065a7bccd4bd40ed1b4e3373b9315513383 /src/mumble/WASAPI.cpp | |
parent | dda999ca5b3003364a03efa8a58333c84491469b (diff) |
WASAPI.cpp: Remove unused "numFramesLeft" variable
We are only assigning a value to the variable multiple times, but never using it.
The variable was added in 6bef650 and it was used as argument in a while loop, which was removed in 3dd8c55.
Diffstat (limited to 'src/mumble/WASAPI.cpp')
-rw-r--r-- | src/mumble/WASAPI.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mumble/WASAPI.cpp b/src/mumble/WASAPI.cpp index 972219929..79a48a81b 100644 --- a/src/mumble/WASAPI.cpp +++ b/src/mumble/WASAPI.cpp @@ -353,7 +353,6 @@ void WASAPIInput::run() { WAVEFORMATEXTENSIBLE wfe; UINT32 bufferFrameCount; UINT32 numFramesAvailable; - UINT32 numFramesLeft; UINT32 micPacketLength = 0, echoPacketLength = 0; UINT32 allocLength; UINT64 devicePosition; @@ -528,8 +527,6 @@ void WASAPIInput::run() { if (FAILED(hr)) goto cleanup; - numFramesLeft = numFramesAvailable; - UINT32 nFrames = numFramesAvailable * micpwfx->nChannels; if (nFrames > allocLength) { delete [] sbuff; @@ -560,7 +557,6 @@ void WASAPIInput::run() { while ((micPacketLength > 0) || (echoPacketLength > 0)) { if (echoPacketLength > 0) { hr = pEchoCaptureClient->GetBuffer(&pData, &numFramesAvailable, &flags, &devicePosition, &qpcPosition); - numFramesLeft = numFramesAvailable; if (FAILED(hr)) { qWarning("WASAPIInput: GetBuffer failed: hr=0x%08lx", hr); goto cleanup; @@ -581,7 +577,6 @@ void WASAPIInput::run() { addEcho(tbuff, numFramesAvailable); } else if (micPacketLength > 0) { hr = pMicCaptureClient->GetBuffer(&pData, &numFramesAvailable, &flags, &devicePosition, &qpcPosition); - numFramesLeft = numFramesAvailable; if (FAILED(hr)) { qWarning("WASAPIInput: GetBuffer failed: hr=0x%08lx", hr); goto cleanup; |