From 316c72a4aea4319443e7ea43e06b027f2b7b1ced Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2014 11:02:02 +0200 Subject: DecoderAPI: add decoder_seek_where_ms() Move to fixed-point integers instead of floating point. --- src/decoder/DecoderAPI.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/decoder/DecoderAPI.hxx') diff --git a/src/decoder/DecoderAPI.hxx b/src/decoder/DecoderAPI.hxx index c57a02e01..ddcead4b1 100644 --- a/src/decoder/DecoderAPI.hxx +++ b/src/decoder/DecoderAPI.hxx @@ -88,6 +88,16 @@ gcc_pure double decoder_seek_where(Decoder &decoder); +/** + * Call this when you have received the DecoderCommand::SEEK command. + * + * @param decoder the decoder object + * @return the destination position for the seek in milliseconds + */ +gcc_pure +unsigned +decoder_seek_where_ms(Decoder &decoder); + /** * Call this instead of decoder_command_finished() when seeking has * failed. -- cgit v1.2.3