1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Apply input volume to all audio channels

Fixes #2452
This commit is contained in:
tux3 2015-10-23 19:27:19 +02:00
parent 2d7c65efbb
commit 08bde698ca
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -501,7 +501,7 @@ bool Audio::tryCaptureSamples(int16_t* buf, int samples)
if (inputVolume != 1)
{
for (int i = 0; i < samples; ++i)
for (size_t i = 0; i < samples * AUDIO_CHANNELS; ++i)
{
int sample = buf[i] * pow(inputVolume, 2);