mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 22:33:34 +02:00
audio client cosmetics
This commit is contained in:
parent
4c7c7ee3cc
commit
492795f7e5
1 changed files with 1 additions and 3 deletions
|
@ -1113,8 +1113,7 @@ void AudioClient::prepareLocalAudioInjectors() {
|
|||
samples = frames * AudioConstants::STEREO;
|
||||
_localInjectorsBuffer.writeSamples(_localOutputScratchBuffer, samples);
|
||||
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// write to local injectors' ring buffer
|
||||
samples = AudioConstants::NETWORK_FRAME_SAMPLES_STEREO;
|
||||
_localInjectorsBuffer.writeSamples(_localScratchBuffer,
|
||||
|
@ -1675,7 +1674,6 @@ qint64 AudioClient::AudioOutputIODevice::readData(char * data, qint64 maxSize) {
|
|||
bytesWritten = framesPopped * AudioConstants::SAMPLE_SIZE * deviceChannelCount;
|
||||
} else {
|
||||
// nothing on network, don't grab anything from injectors, and just return 0s
|
||||
// this will flood the log: qCDebug(audioclient, "empty/partial network buffer");
|
||||
memset(data, 0, maxSize);
|
||||
bytesWritten = maxSize;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue