mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:09:52 +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;
|
samples = frames * AudioConstants::STEREO;
|
||||||
_localInjectorsBuffer.writeSamples(_localOutputScratchBuffer, samples);
|
_localInjectorsBuffer.writeSamples(_localOutputScratchBuffer, samples);
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// write to local injectors' ring buffer
|
// write to local injectors' ring buffer
|
||||||
samples = AudioConstants::NETWORK_FRAME_SAMPLES_STEREO;
|
samples = AudioConstants::NETWORK_FRAME_SAMPLES_STEREO;
|
||||||
_localInjectorsBuffer.writeSamples(_localScratchBuffer,
|
_localInjectorsBuffer.writeSamples(_localScratchBuffer,
|
||||||
|
@ -1675,7 +1674,6 @@ qint64 AudioClient::AudioOutputIODevice::readData(char * data, qint64 maxSize) {
|
||||||
bytesWritten = framesPopped * AudioConstants::SAMPLE_SIZE * deviceChannelCount;
|
bytesWritten = framesPopped * AudioConstants::SAMPLE_SIZE * deviceChannelCount;
|
||||||
} else {
|
} else {
|
||||||
// nothing on network, don't grab anything from injectors, and just return 0s
|
// 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);
|
memset(data, 0, maxSize);
|
||||||
bytesWritten = maxSize;
|
bytesWritten = maxSize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue