MusicChunk: use SignedSongTime for the time stamp

This commit is contained in:
Max Kellermann
2014-08-29 13:15:33 +02:00
parent 147d301f10
commit 9d3a85d434
5 changed files with 12 additions and 10 deletions

View File

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