1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-13 04:53:03 +01:00

forgot IFDEFs

This commit is contained in:
Jfreegman 2014-12-09 18:55:14 -05:00
parent d561d2e1ac
commit 9922b3a4f3
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -175,7 +175,9 @@ static void kill_groupchat_window(ToxWindow *self)
void close_groupchat(ToxWindow *self, Tox *m, int groupnum)
{
tox_del_groupchat(m, groupnum);
#ifdef AUDIO
group_audio_close_out_device(groupnum);
#endif
free(groupchats[groupnum].peer_names);
free(groupchats[groupnum].oldpeer_names);
@ -798,7 +800,6 @@ static int group_audio_write(int peernum, int groupnum, const int16_t *pcm, unsi
alGetSourcei(groupchats[groupnum].audio.source, AL_BUFFERS_PROCESSED, &processed);
alGetSourcei(groupchats[groupnum].audio.source, AL_BUFFERS_QUEUED, &queued);
alSourcei(groupchats[groupnum].audio.source, AL_LOOPING, AL_FALSE);
fprintf(stderr, "source: %d, queued: %d, processed: %d\n", groupchats[groupnum].audio.source, queued, processed);
if (processed) {