From 1285b5811cb39b757519668f860bd9a310c8f6a1 Mon Sep 17 00:00:00 2001 From: agilob Date: Mon, 11 May 2015 20:32:38 +0100 Subject: [PATCH] this sould be better ;_; --- src/audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio.cpp b/src/audio.cpp index b2e12ebbe..7533d9c8d 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -232,10 +232,10 @@ void Audio::playMono16Sound(const QByteArray& data) ALuint buffer; alGenBuffers(1, &buffer); alBufferData(buffer, AL_FORMAT_MONO16, data.data(), data.size(), 44100); + alSourcef(alMainSource, AL_GAIN, outputVolume); 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,