mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 06:13:03 +01:00
fix building without audio
This commit is contained in:
parent
9464b369a4
commit
0a0891fa98
@ -473,8 +473,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
|
|||||||
|
|
||||||
switch (change) {
|
switch (change) {
|
||||||
case TOX_CHAT_CHANGE_PEER_ADD:
|
case TOX_CHAT_CHANGE_PEER_ADD:
|
||||||
|
#ifdef AUDIO
|
||||||
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
|
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
|
||||||
group_audio_add_source(groupnum, peernum);
|
group_audio_add_source(groupnum, peernum);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!timed_out(groupchats[groupnum].start_time, get_unix_time(), GROUP_EVENT_WAIT))
|
if (!timed_out(groupchats[groupnum].start_time, get_unix_time(), GROUP_EVENT_WAIT))
|
||||||
break;
|
break;
|
||||||
@ -506,8 +508,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TOX_CHAT_CHANGE_PEER_DEL:
|
case TOX_CHAT_CHANGE_PEER_DEL:
|
||||||
|
#ifdef AUDIO
|
||||||
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
|
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
|
||||||
group_audio_rm_source(groupnum, peernum);
|
group_audio_rm_source(groupnum, peernum);
|
||||||
|
#endif
|
||||||
|
|
||||||
event = "has left the room";
|
event = "has left the room";
|
||||||
line_info_add(self, timefrmt, (char *) oldpeername, NULL, CONNECTION, 0, RED, event);
|
line_info_add(self, timefrmt, (char *) oldpeername, NULL, CONNECTION, 0, RED, event);
|
||||||
|
Loading…
Reference in New Issue
Block a user