decoder/audiofile: use integer seek times
This commit is contained in:
parent
8561c9c5a6
commit
f057e1e17a
@ -234,8 +234,7 @@ audiofile_stream_decode(Decoder &decoder, InputStream &is)
|
|||||||
kbit_rate);
|
kbit_rate);
|
||||||
|
|
||||||
if (cmd == DecoderCommand::SEEK) {
|
if (cmd == DecoderCommand::SEEK) {
|
||||||
AFframecount frame = decoder_seek_where(decoder) *
|
AFframecount frame = decoder_seek_where_frame(decoder);
|
||||||
audio_format.sample_rate;
|
|
||||||
afSeekFrame(fh, AF_DEFAULT_TRACK, frame);
|
afSeekFrame(fh, AF_DEFAULT_TRACK, frame);
|
||||||
|
|
||||||
decoder_command_finished(decoder);
|
decoder_command_finished(decoder);
|
||||||
|
Loading…
Reference in New Issue
Block a user