diff options
author | Max Kellermann <max@duempel.org> | 2014-08-29 13:15:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-29 13:20:58 +0200 |
commit | 9d3a85d434892055e5a640338a002504a26eabb0 (patch) | |
tree | 0d2c458f0f6719c266d36d0792f4cc6ad54df17a /src/MusicChunk.cxx | |
parent | 147d301f102512b1a64c85e3896bdd466fb634af (diff) | |
download | mpd-9d3a85d434892055e5a640338a002504a26eabb0.tar.gz mpd-9d3a85d434892055e5a640338a002504a26eabb0.tar.xz mpd-9d3a85d434892055e5a640338a002504a26eabb0.zip |
MusicChunk: use SignedSongTime for the time stamp
Diffstat (limited to 'src/MusicChunk.cxx')
-rw-r--r-- | src/MusicChunk.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MusicChunk.cxx b/src/MusicChunk.cxx index 91856709e..07ec1bc19 100644 --- a/src/MusicChunk.cxx +++ b/src/MusicChunk.cxx @@ -41,17 +41,17 @@ MusicChunk::CheckFormat(const AudioFormat other_format) const WritableBuffer<void> MusicChunk::Write(const AudioFormat af, - float data_time, uint16_t _bit_rate) + SongTime data_time, uint16_t _bit_rate) { assert(CheckFormat(af)); assert(length == 0 || audio_format.IsValid()); if (length == 0) { /* if the chunk is empty, nobody has set bitRate and - times yet */ + time yet */ bit_rate = _bit_rate; - times = data_time; + time = data_time; } const size_t frame_size = af.GetFrameSize(); |