1
0
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:
cnhenry
2015-08-10 06:14:38 -05:00
parent c2c612b85a
commit ad04fa4dcd
10 changed files with 437 additions and 500 deletions

View File

@ -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 */