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:
@@ -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
|
||||
|
Reference in New Issue
Block a user