From 4581dee4fc5c18e164c13e26e1d9dfb488534a4e Mon Sep 17 00:00:00 2001 From: "zugz (tox)" Date: Sat, 14 Nov 2020 00:00:00 +0000 Subject: [PATCH] astyle --- src/chat_commands.c | 3 ++- src/conference.c | 3 ++- src/conference.h | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/chat_commands.c b/src/chat_commands.c index e80af9f..8c9b129 100644 --- a/src/chat_commands.c +++ b/src/chat_commands.c @@ -138,7 +138,8 @@ void cmd_conference_join(WINDOW *window, ToxWindow *self, Tox *m, int argc, char } } else if (type == TOX_CONFERENCE_TYPE_AV) { #ifdef AUDIO - conferencenum = toxav_join_av_groupchat(m, self->num, (const uint8_t *) conferencekey, length, audio_conference_callback, NULL); + conferencenum = toxav_join_av_groupchat(m, self->num, (const uint8_t *) conferencekey, length, + audio_conference_callback, NULL); if (conferencenum == (uint32_t) -1) { line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Audio conference instance failed to initialize"); diff --git a/src/conference.c b/src/conference.c index ac21a90..120893b 100644 --- a/src/conference.c +++ b/src/conference.c @@ -780,6 +780,7 @@ static bool conference_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr) for (uint32_t i = 0; i < chat->num_peers; ++i) { complete_strs[i] = (const char *) chat->name_list[i].pubkey_str; } + diff = complete_line(self, complete_strs, chat->num_peers); } @@ -1094,7 +1095,7 @@ static ToxWindow *new_conference_chat(uint32_t conferencenum) #define CONFAV_SAMPLES_PER_FRAME (CONFAV_SAMPLE_RATE * CONFAV_FRAME_DURATION / 1000) void audio_conference_callback(void *tox, uint32_t conferencenum, uint32_t peernum, const int16_t *pcm, - unsigned int samples, uint8_t channels, uint32_t sample_rate, void *userdata) + unsigned int samples, uint8_t channels, uint32_t sample_rate, void *userdata) { ConferencePeer *peer = peer_in_conference(conferencenum, peernum); diff --git a/src/conference.h b/src/conference.h index db1ac05..6a12684 100644 --- a/src/conference.h +++ b/src/conference.h @@ -97,8 +97,8 @@ bool init_conference_audio_input(Tox *tox, uint32_t conferencenum); bool enable_conference_audio(Tox *tox, uint32_t conferencenum); bool disable_conference_audio(Tox *tox, uint32_t conferencenum); void audio_conference_callback(void *tox, uint32_t conferencenum, uint32_t peernum, - const int16_t *pcm, unsigned int samples, uint8_t channels, uint32_t - sample_rate, void *userdata); + const int16_t *pcm, unsigned int samples, uint8_t channels, uint32_t + sample_rate, void *userdata); bool conference_mute_self(uint32_t conferencenum); bool conference_mute_peer(const Tox *m, uint32_t conferencenum, uint32_t peernum);