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

@@ -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();