1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 23:03:27 +01:00
This commit is contained in:
Jfreegman 2014-12-09 18:35:14 -05:00
parent 7865cea284
commit d561d2e1ac
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -773,6 +773,7 @@ static int group_audio_close_out_device(int groupnum)
alcMakeContextCurrent(groupchats[groupnum].audio.dvctx); alcMakeContextCurrent(groupchats[groupnum].audio.dvctx);
alDeleteSources((uint32_t) 1, &groupchats[groupnum].audio.source); alDeleteSources((uint32_t) 1, &groupchats[groupnum].audio.source);
alDeleteBuffers(OPENAL_BUFS, groupchats[groupnum].audio.buffers);
alcMakeContextCurrent(NULL); alcMakeContextCurrent(NULL);
alcDestroyContext(groupchats[groupnum].audio.dvctx); alcDestroyContext(groupchats[groupnum].audio.dvctx);
@ -793,7 +794,7 @@ static int group_audio_write(int peernum, int groupnum, const int16_t *pcm, unsi
return -2; return -2;
ALuint bufid; ALuint bufid;
ALint processed = 0, queued = 16; ALint processed = 0, queued = 0;
alGetSourcei(groupchats[groupnum].audio.source, AL_BUFFERS_PROCESSED, &processed); alGetSourcei(groupchats[groupnum].audio.source, AL_BUFFERS_PROCESSED, &processed);
alGetSourcei(groupchats[groupnum].audio.source, AL_BUFFERS_QUEUED, &queued); alGetSourcei(groupchats[groupnum].audio.source, AL_BUFFERS_QUEUED, &queued);