mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 20:08:20 +02:00
Fix longstanding bug in Audio Scope feature that records output to WAV
This commit is contained in:
parent
80aeeaa3e0
commit
c3b9e4806a
1 changed files with 1 additions and 1 deletions
|
@ -2208,7 +2208,7 @@ qint64 AudioClient::AudioOutputIODevice::readData(char * data, qint64 maxSize) {
|
|||
// send output buffer for recording
|
||||
if (_audio->_isRecording) {
|
||||
Lock lock(_recordMutex);
|
||||
_audio->_audioFileWav.addRawAudioChunk(reinterpret_cast<char*>(scratchBuffer), bytesWritten);
|
||||
_audio->_audioFileWav.addRawAudioChunk(data, bytesWritten);
|
||||
}
|
||||
|
||||
int bytesAudioOutputUnplayed = _audio->_audioOutput->bufferSize() - _audio->_audioOutput->bytesFree();
|
||||
|
|
Loading…
Reference in a new issue