From fa7ad8586734b78625eaaf5b46b95ff31553ed2f Mon Sep 17 00:00:00 2001 From: agilob Date: Mon, 11 May 2015 20:30:37 +0100 Subject: [PATCH] alsourcef in audio::playmono16sound --- src/audio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audio.cpp b/src/audio.cpp index 9239f5f14..b2e12ebbe 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -235,6 +235,7 @@ void Audio::playMono16Sound(const QByteArray& data) alSourcei(alMainSource, AL_BUFFER, buffer); alSourcePlay(alMainSource); alDeleteBuffers(1, &buffer); + alSourcef(alMainSource, AL_GAIN, outputVolume); } void Audio::playGroupAudioQueued(Tox*,int group, int peer, const int16_t* data,