From 9d3a85d434892055e5a640338a002504a26eabb0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 13:15:33 +0200 Subject: MusicChunk: use SignedSongTime for the time stamp --- src/MusicChunk.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/MusicChunk.hxx') diff --git a/src/MusicChunk.hxx b/src/MusicChunk.hxx index 835221233..805112d02 100644 --- a/src/MusicChunk.hxx +++ b/src/MusicChunk.hxx @@ -20,6 +20,7 @@ #ifndef MPD_MUSIC_CHUNK_HXX #define MPD_MUSIC_CHUNK_HXX +#include "Chrono.hxx" #include "ReplayGainInfo.hxx" #include "util/WritableBuffer.hxx" @@ -62,7 +63,7 @@ struct MusicChunk { uint16_t bit_rate; /** the time stamp within the song */ - float times; + SignedSongTime time; /** * An optional tag associated with this chunk (and the @@ -128,7 +129,8 @@ struct MusicChunk { * @return a writable buffer, or nullptr if the chunk is full */ WritableBuffer Write(AudioFormat af, - float data_time, uint16_t bit_rate); + SongTime data_time, + uint16_t bit_rate); /** * Increases the length of the chunk after the caller has written to -- cgit v1.2.3