mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed CALL_STATE naming
This commit is contained in:
parent
10e0209f2a
commit
7d5de68364
|
@ -392,25 +392,25 @@ START_TEST(test_AV_flows)
|
||||||
printf("Mute/Unmute single\n");
|
printf("Mute/Unmute single\n");
|
||||||
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_MUTE_AUDIO, NULL));
|
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_MUTE_AUDIO, NULL));
|
||||||
iterate_tox(bootstrap, Alice, Bob);
|
iterate_tox(bootstrap, Alice, Bob);
|
||||||
ck_assert(BobCC.state ^ TOXAV_FRIEND_CALL_STATE_RECEIVING_A);
|
ck_assert(BobCC.state ^ TOXAV_FRIEND_CALL_STATE_ACCEPTING_A);
|
||||||
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_UNMUTE_AUDIO, NULL));
|
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_UNMUTE_AUDIO, NULL));
|
||||||
iterate_tox(bootstrap, Alice, Bob);
|
iterate_tox(bootstrap, Alice, Bob);
|
||||||
ck_assert(BobCC.state & TOXAV_FRIEND_CALL_STATE_RECEIVING_A);
|
ck_assert(BobCC.state & TOXAV_FRIEND_CALL_STATE_ACCEPTING_A);
|
||||||
|
|
||||||
/* Mute/Unmute both */
|
/* Mute/Unmute both */
|
||||||
printf("Mute/Unmute both\n");
|
printf("Mute/Unmute both\n");
|
||||||
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_MUTE_AUDIO, NULL));
|
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_MUTE_AUDIO, NULL));
|
||||||
iterate_tox(bootstrap, Alice, Bob);
|
iterate_tox(bootstrap, Alice, Bob);
|
||||||
ck_assert(BobCC.state ^ TOXAV_FRIEND_CALL_STATE_RECEIVING_A);
|
ck_assert(BobCC.state ^ TOXAV_FRIEND_CALL_STATE_ACCEPTING_A);
|
||||||
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_HIDE_VIDEO, NULL));
|
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_HIDE_VIDEO, NULL));
|
||||||
iterate_tox(bootstrap, Alice, Bob);
|
iterate_tox(bootstrap, Alice, Bob);
|
||||||
ck_assert(BobCC.state ^ TOXAV_FRIEND_CALL_STATE_RECEIVING_V);
|
ck_assert(BobCC.state ^ TOXAV_FRIEND_CALL_STATE_ACCEPTING_V);
|
||||||
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_UNMUTE_AUDIO, NULL));
|
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_UNMUTE_AUDIO, NULL));
|
||||||
iterate_tox(bootstrap, Alice, Bob);
|
iterate_tox(bootstrap, Alice, Bob);
|
||||||
ck_assert(BobCC.state & TOXAV_FRIEND_CALL_STATE_RECEIVING_A);
|
ck_assert(BobCC.state & TOXAV_FRIEND_CALL_STATE_ACCEPTING_A);
|
||||||
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_SHOW_VIDEO, NULL));
|
ck_assert(toxav_call_control(AliceAV, 0, TOXAV_CALL_CONTROL_SHOW_VIDEO, NULL));
|
||||||
iterate_tox(bootstrap, Alice, Bob);
|
iterate_tox(bootstrap, Alice, Bob);
|
||||||
ck_assert(BobCC.state & TOXAV_FRIEND_CALL_STATE_RECEIVING_V);
|
ck_assert(BobCC.state & TOXAV_FRIEND_CALL_STATE_ACCEPTING_V);
|
||||||
|
|
||||||
{
|
{
|
||||||
TOXAV_ERR_CALL_CONTROL rc;
|
TOXAV_ERR_CALL_CONTROL rc;
|
||||||
|
|
|
@ -323,11 +323,11 @@ bitmask FRIEND_CALL_STATE {
|
||||||
/**
|
/**
|
||||||
* The flag that marks that friend is receiving audio.
|
* The flag that marks that friend is receiving audio.
|
||||||
*/
|
*/
|
||||||
RECEIVING_A,
|
ACCEPTING_A,
|
||||||
/**
|
/**
|
||||||
* The flag that marks that friend is receiving video.
|
* The flag that marks that friend is receiving video.
|
||||||
*/
|
*/
|
||||||
RECEIVING_V,
|
ACCEPTING_V,
|
||||||
}
|
}
|
||||||
event call_state {
|
event call_state {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -329,11 +329,11 @@ enum TOXAV_FRIEND_CALL_STATE {
|
||||||
/**
|
/**
|
||||||
* The flag that marks that friend is receiving audio.
|
* The flag that marks that friend is receiving audio.
|
||||||
*/
|
*/
|
||||||
TOXAV_FRIEND_CALL_STATE_RECEIVING_A = 16,
|
TOXAV_FRIEND_CALL_STATE_ACCEPTING_A = 16,
|
||||||
/**
|
/**
|
||||||
* The flag that marks that friend is receiving video.
|
* The flag that marks that friend is receiving video.
|
||||||
*/
|
*/
|
||||||
TOXAV_FRIEND_CALL_STATE_RECEIVING_V = 32,
|
TOXAV_FRIEND_CALL_STATE_ACCEPTING_V = 32,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user