Display and control your Android device
Fix comparison warning
Romain Vimont80a6fa7a01f0
diff --git a/app/src/audio_player.c b/app/src/audio_player.cindex 5abc9088..bba39acb 100644--- a/app/src/audio_player.c+++ b/app/src/audio_player.c@@ -287,7 +287,7 @@ sc_audio_player_frame_sink_push(struct sc_frame_sink *sink,float avg = sc_average_get(&ap->avg_buffering);int diff = ap->target_buffering - avg;- if (abs(diff) < ap->sample_rate / 1000) {+ if (abs(diff) < (int) ap->sample_rate / 1000) {// Do not compensate for less than 1ms, the error is just noisediff = 0;} else if (diff < 0 && buffered_samples < ap->target_buffering) {