From a0d1dd5d91c81ec9907cbc7b890905c463c18f62 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 28 Jul 2015 17:53:27 +0100 Subject: Replace Time::frames with Time::frames_round and Time::frames_floor. I believe both are necessary; doing floor instead of round caused #648. --- src/lib/sndfile_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/sndfile_decoder.cc') diff --git a/src/lib/sndfile_decoder.cc b/src/lib/sndfile_decoder.cc index 2fa9ae2a3..b2d35f302 100644 --- a/src/lib/sndfile_decoder.cc +++ b/src/lib/sndfile_decoder.cc @@ -98,6 +98,6 @@ SndfileDecoder::seek (ContentTime t, bool accurate) { AudioDecoder::seek (t, accurate); - _done = t.frames (_info.samplerate); + _done = t.frames_round (_info.samplerate); _remaining = _info.frames - _done; } -- cgit v1.2.3