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.
This commit is contained in:
Max Kellermann
2009-07-23 12:27:05 +02:00
parent 0749dbfadf
commit caf48ee973
2 changed files with 4 additions and 22 deletions

View File

@@ -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