mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-05 08:26:45 +02:00
show info box for audio calls
This commit is contained in:
@ -110,6 +110,7 @@ struct ToxWindow {
|
||||
int call_idx; /* If in a call will have this index set, otherwise it's -1.
|
||||
* Don't modify outside av callbacks. */
|
||||
int device_selection[2]; /* -1 if not set, if set uses these selections instead of primary device */
|
||||
|
||||
#endif /* _SUPPORT_AUDIO */
|
||||
|
||||
char name[TOX_MAX_NAME_LENGTH];
|
||||
@ -129,7 +130,6 @@ struct ToxWindow {
|
||||
ChatContext *chatwin;
|
||||
StatusBar *stb;
|
||||
|
||||
WINDOW *popup;
|
||||
WINDOW *window;
|
||||
};
|
||||
|
||||
@ -144,6 +144,23 @@ struct StatusBar {
|
||||
bool is_online;
|
||||
};
|
||||
|
||||
#ifdef _SUPPORT_AUDIO
|
||||
/* holds display info for audio calls */
|
||||
struct infobox {
|
||||
float vad_lvl;
|
||||
bool in_is_muted;
|
||||
bool out_is_muted;
|
||||
bool hide;
|
||||
bool active;
|
||||
|
||||
uint64_t calltime;
|
||||
uint64_t deltatime;
|
||||
char timestr[TIME_STR_SIZE];
|
||||
|
||||
WINDOW *win;
|
||||
};
|
||||
#endif
|
||||
|
||||
#define MAX_LINE_HIST 128
|
||||
|
||||
/* chat and groupchat window/buffer holder */
|
||||
@ -160,6 +177,10 @@ struct ChatContext {
|
||||
struct history *hst;
|
||||
struct chatlog *log;
|
||||
|
||||
#ifdef _SUPPORT_AUDIO
|
||||
struct infobox infobox;
|
||||
#endif
|
||||
|
||||
uint8_t self_is_typing;
|
||||
|
||||
WINDOW *history;
|
||||
|
Reference in New Issue
Block a user