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:
parent
fa7ad85867
commit
1285b5811c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user