mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 23:03:27 +01:00
fix
This commit is contained in:
parent
7865cea284
commit
d561d2e1ac
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user