mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-30 09:58:55 +00:00
Fix audio stuffing test so it doesn't repeat the same payload
This commit is contained in:
parent
de8da93e7b
commit
07c507017a
3
vomp.c
3
vomp.c
@ -275,7 +275,8 @@ int vomp_send_status_remote_audio(vomp_call_state *call, int audio_codec, char *
|
||||
rotor--; if (rotor<0) rotor+=VOMP_MAX_RECENT_SAMPLES;
|
||||
rotor%=VOMP_MAX_RECENT_SAMPLES;
|
||||
|
||||
if ((!sb[rotor].endtime)||(sb[rotor].endtime==call->audio_clock+1)) break;
|
||||
// stop if we've run out of samples before we ran out of bytes
|
||||
if ((!sb[rotor].endtime)||(sb[rotor].endtime+1==call->audio_clock)) break;
|
||||
}
|
||||
call->recent_sample_rotor++;
|
||||
call->recent_sample_rotor%=VOMP_MAX_RECENT_SAMPLES;
|
||||
|
Loading…
Reference in New Issue
Block a user