From caf48ee973b621786365a774f4ae18a80665fae5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jul 2009 12:27:05 +0200 Subject: player_thread: don't use precalculated size_to_time Calculate the total play time with the audio_format object each time, using audio_format_time_to_size(). The function audioFormatSizeToTime() is not needed anymore, and will be removed with this patch. --- src/audio_format.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/audio_format.h') diff --git a/src/audio_format.h b/src/audio_format.h index cf067b705..a88fc3a4c 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -172,13 +172,4 @@ static inline double audio_format_time_to_size(const struct audio_format *af) return af->sample_rate * audio_format_frame_size(af); } -/** - * Returns the floating point factor which converts a storage size in - * bytes to a time span. - */ -static inline double audioFormatSizeToTime(const struct audio_format *af) -{ - return 1.0 / audio_format_time_to_size(af); -} - #endif -- cgit v1.2.3