summaryrefslogtreecommitdiff
path: root/auto_tests/toxav_basic_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/toxav_basic_test.c')
-rw-r--r--auto_tests/toxav_basic_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c
index 528b1f9d..5c292168 100644
--- a/auto_tests/toxav_basic_test.c
+++ b/auto_tests/toxav_basic_test.c
@@ -49,7 +49,7 @@ typedef struct _Status {
49} Status; 49} Status;
50 50
51/* My default settings */ 51/* My default settings */
52static ToxAvCodecSettings muhcaps; 52static ToxAvCSettings muhcaps;
53 53
54void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, uint16_t length, void *userdata) 54void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8_t *data, uint16_t length, void *userdata)
55{ 55{
@@ -82,7 +82,7 @@ void callback_recv_starting ( void *av, int32_t call_index, void *_arg )
82 /* Alice always sends invite */ 82 /* Alice always sends invite */
83 printf("Call started on Alice side...\n"); 83 printf("Call started on Alice side...\n");
84 cast->Alice.status = InCall; 84 cast->Alice.status = InCall;
85 toxav_prepare_transmission(av, call_index, 3, 0, 1); 85 toxav_prepare_transmission(av, call_index, av_jbufdc, av_VADd, 1);
86} 86}
87void callback_recv_ending ( void *av, int32_t call_index, void *_arg ) 87void callback_recv_ending ( void *av, int32_t call_index, void *_arg )
88{ 88{
@@ -105,7 +105,7 @@ void callback_call_started ( void *av, int32_t call_index, void *_arg )
105 /* Alice always sends invite */ 105 /* Alice always sends invite */
106 printf("Call started on Bob side...\n"); 106 printf("Call started on Bob side...\n");
107 cast->Bob.status = InCall; 107 cast->Bob.status = InCall;
108 toxav_prepare_transmission(av, call_index, 3, 0, 1); 108 toxav_prepare_transmission(av, call_index, av_jbufdc, av_VADd, 1);
109} 109}
110void callback_call_canceled ( void *av, int32_t call_index, void *_arg ) 110void callback_call_canceled ( void *av, int32_t call_index, void *_arg )
111{ 111{
@@ -133,7 +133,7 @@ void callback_call_ended ( void *av, int32_t call_index, void *_arg )
133 133
134void callback_call_type_change ( void *av, int32_t call_index, void *_arg ) 134void callback_call_type_change ( void *av, int32_t call_index, void *_arg )
135{ 135{
136 ToxAvCodecSettings csettings; 136 ToxAvCSettings csettings;
137 toxav_get_peer_csettings(av, call_index, 0, &csettings); 137 toxav_get_peer_csettings(av, call_index, 0, &csettings);
138 138
139 printf("New settings: \n" 139 printf("New settings: \n"
@@ -312,7 +312,7 @@ START_TEST(test_AV_flows)
312 step++; /* This terminates the loop */ 312 step++; /* This terminates the loop */
313 toxav_kill_transmission(status_control.Alice.av, status_control.Alice.call_index); 313 toxav_kill_transmission(status_control.Alice.av, status_control.Alice.call_index);
314 toxav_kill_transmission(status_control.Bob.av, status_control.Bob.call_index); 314 toxav_kill_transmission(status_control.Bob.av, status_control.Bob.call_index);
315 315
316 /* Call over Alice hangs up */ 316 /* Call over Alice hangs up */
317 toxav_hangup(status_control.Alice.av, status_control.Alice.call_index); 317 toxav_hangup(status_control.Alice.av, status_control.Alice.call_index);
318 } 318 }