mirror of
https://github.com/overte-org/overte.git
synced 2025-06-16 12:00:19 +02:00
Typo, plus some CR feedback
This commit is contained in:
parent
d6b99ce57e
commit
a8157ae2cd
2 changed files with 3 additions and 2 deletions
|
@ -1131,8 +1131,9 @@ void AudioClient::mixLocalAudioInjectors(float* mixBuffer) {
|
||||||
} else if (injector->isStereo()) {
|
} else if (injector->isStereo()) {
|
||||||
|
|
||||||
// stereo gets directly mixed into mixBuffer
|
// stereo gets directly mixed into mixBuffer
|
||||||
|
float gain = injector->getVolume();
|
||||||
for (int i = 0; i < AudioConstants::NETWORK_FRAME_SAMPLES_STEREO; i++) {
|
for (int i = 0; i < AudioConstants::NETWORK_FRAME_SAMPLES_STEREO; i++) {
|
||||||
mixBuffer[i] += (float)_scratchBuffer[i] * (1/32768.0f) * injector->getVolume();
|
mixBuffer[i] += (float)_scratchBuffer[i] * (1/32768.0f) * gain;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -16,7 +16,7 @@ AudioInjectorLocalBuffer::AudioInjectorLocalBuffer(const QByteArray& rawAudioArr
|
||||||
_rawAudioArray(rawAudioArray),
|
_rawAudioArray(rawAudioArray),
|
||||||
_shouldLoop(false),
|
_shouldLoop(false),
|
||||||
_isStopped(false),
|
_isStopped(false),
|
||||||
_currentOffset(0),
|
_currentOffset(0)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue