Player slight improvements

tick marks count adapted to fps, clamped refresh frequency computation, listing of all sources playable from menu
This commit is contained in:
Bruno
2021-06-19 00:47:47 +02:00
parent 1a1956962a
commit 6cc5a8af9e
3 changed files with 16 additions and 5 deletions

View File

@@ -1250,6 +1250,6 @@ void MediaPlayer::TimeCounter::tic ()
// calculate instantaneous framerate
// Exponential moving averate with previous framerate to filter jitter
if (dt > 1.0)
fps = 0.5 * fps + 500.0 / dt ;
fps = CLAMP( 0.5 * fps + 500.0 / dt, 0.0, 1000.0) ;
}