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

this sould be better ;_;

This commit is contained in:
agilob 2015-05-11 20:32:38 +01:00
parent fa7ad85867
commit 1285b5811c

View File

@ -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,