Search in sources :

Example 6 with TimeSpeedConverter

use of de.danoeh.antennapod.core.util.TimeSpeedConverter in project AntennaPod by AntennaPod.

the class PlaybackServiceNotificationBuilder method updatePosition.

public void updatePosition(int position, float speed) {
    TimeSpeedConverter converter = new TimeSpeedConverter(speed);
    this.position = Converter.getDurationStringLong(converter.convert(position));
}
Also used : TimeSpeedConverter(de.danoeh.antennapod.core.util.TimeSpeedConverter)

Aggregations

TimeSpeedConverter (de.danoeh.antennapod.core.util.TimeSpeedConverter)6 SuppressLint (android.annotation.SuppressLint)3 Playable (de.danoeh.antennapod.model.playback.Playable)1 Subscribe (org.greenrobot.eventbus.Subscribe)1