aboutsummaryrefslogtreecommitdiffstats
path: root/src/MusicChunk.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-29 13:15:33 +0200
committerMax Kellermann <max@duempel.org>2014-08-29 13:20:58 +0200
commit9d3a85d434892055e5a640338a002504a26eabb0 (patch)
tree0d2c458f0f6719c266d36d0792f4cc6ad54df17a /src/MusicChunk.hxx
parent147d301f102512b1a64c85e3896bdd466fb634af (diff)
downloadmpd-9d3a85d434892055e5a640338a002504a26eabb0.tar.gz
mpd-9d3a85d434892055e5a640338a002504a26eabb0.tar.xz
mpd-9d3a85d434892055e5a640338a002504a26eabb0.zip
MusicChunk: use SignedSongTime for the time stamp
Diffstat (limited to 'src/MusicChunk.hxx')
-rw-r--r--src/MusicChunk.hxx6
1 files changed, 4 insertions, 2 deletions
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<void> 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