[−][src]Function flac_sys::FLAC__stream_decoder_get_decode_position
pub unsafe extern "C" fn FLAC__stream_decoder_get_decode_position(
decoder: *const FLAC__StreamDecoder,
position: *mut FLAC__uint64
) -> FLAC__bool
Returns the decoder's current read position within the stream. The position is the byte offset from the start of the stream. Bytes before this position have been fully decoded. Note that there may still be undecoded bytes in the decoder's read FIFO. The returned position is correct even after a seek.
\warning This function currently only works for native FLAC, not Ogg FLAC streams.
\param decoder A decoder instance to query. \param position Address at which to return the desired position. \assert \code decoder != NULL \endcode \code position != NULL \endcode \retval FLAC__bool \c true if successful, \c false if the stream is not native FLAC, or there was an error from the 'tell' callback or it returned \c FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED.