mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-03 15:06:45 +02:00
Major refactoring and fixes towards AV
This commit is contained in:
@ -43,11 +43,11 @@ typedef struct Call {
|
||||
pthread_mutex_t mutex;
|
||||
} Call;
|
||||
|
||||
typedef struct CallControl {
|
||||
struct CallControl {
|
||||
AudioError errors;
|
||||
|
||||
ToxAV *av;
|
||||
ToxWindow *window;
|
||||
ToxWindow *prompt;
|
||||
|
||||
Call calls[MAX_CALLS];
|
||||
bool pending_call;
|
||||
@ -65,13 +65,13 @@ typedef struct CallControl {
|
||||
|
||||
} CallControl;
|
||||
|
||||
CallControl CallContrl;
|
||||
struct CallControl CallControl;
|
||||
|
||||
/* You will have to pass pointer to first member of 'windows' declared in windows.c */
|
||||
ToxAV *init_audio(ToxWindow *self, Tox *tox);
|
||||
void terminate_audio();
|
||||
int start_transmission(ToxWindow *self, Call *call);
|
||||
int stop_transmission(Call *call, int friend_number);
|
||||
int stop_transmission(Call *call, uint32_t friend_number);
|
||||
void stop_current_call(ToxWindow *self);
|
||||
|
||||
#endif /* AUDIO_CALL_H */
|
||||
|
Reference in New Issue
Block a user