mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:33:02 +01:00
forgot IFDEFs
This commit is contained in:
parent
d561d2e1ac
commit
9922b3a4f3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user