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

fix: Use real channels number

This commit is contained in:
Diadlo 2018-01-17 00:53:22 +03:00
parent e3f3d5e3b1
commit e74cc37a2d
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -586,7 +586,7 @@ void OpenAL::doInput()
inputBuffer[i] = static_cast<int16_t>(ampPCM);
}
emit Audio::frameAvailable(inputBuffer, AUDIO_FRAME_SAMPLE_COUNT, 1, AUDIO_SAMPLE_RATE);
emit Audio::frameAvailable(inputBuffer, AUDIO_FRAME_SAMPLE_COUNT, channels, AUDIO_SAMPLE_RATE);
}
void OpenAL::doOutput()