diff options
author | Max Kellermann <max@duempel.org> | 2009-07-23 12:27:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-23 12:27:05 +0200 |
commit | caf48ee973b621786365a774f4ae18a80665fae5 (patch) | |
tree | b6d0f33ea7f9e8d6e2945f7e4433839f884b9563 /src/audio_format.h | |
parent | 0749dbfadfa7145d86bc75a486d91b0ce14169ba (diff) | |
download | mpd-caf48ee973b621786365a774f4ae18a80665fae5.tar.gz mpd-caf48ee973b621786365a774f4ae18a80665fae5.tar.xz mpd-caf48ee973b621786365a774f4ae18a80665fae5.zip |
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.
Diffstat (limited to 'src/audio_format.h')
-rw-r--r-- | src/audio_format.h | 9 |
1 files changed, 0 insertions, 9 deletions
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 |