diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 11:02:02 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 11:02:02 +0200 |
commit | 316c72a4aea4319443e7ea43e06b027f2b7b1ced (patch) | |
tree | e3a77de7cc35a48a99bf1d3466f7cb7f7405c07a /src/decoder/DecoderAPI.hxx | |
parent | 9da88eec3e60e1e34d13d1a8cfe53f25fec4505a (diff) | |
download | mpd-316c72a4aea4319443e7ea43e06b027f2b7b1ced.tar.gz mpd-316c72a4aea4319443e7ea43e06b027f2b7b1ced.tar.xz mpd-316c72a4aea4319443e7ea43e06b027f2b7b1ced.zip |
DecoderAPI: add decoder_seek_where_ms()
Move to fixed-point integers instead of floating point.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/DecoderAPI.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -89,6 +89,16 @@ 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. * |