mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
get rid of obsolete *_get_decode_position() methods
This commit is contained in:
@@ -530,23 +530,6 @@ OggFLAC_API unsigned OggFLAC__file_decoder_get_sample_rate(const OggFLAC__FileDe
|
|||||||
*/
|
*/
|
||||||
OggFLAC_API unsigned OggFLAC__file_decoder_get_blocksize(const OggFLAC__FileDecoder *decoder);
|
OggFLAC_API unsigned OggFLAC__file_decoder_get_blocksize(const OggFLAC__FileDecoder *decoder);
|
||||||
|
|
||||||
#if 0
|
|
||||||
@@@@@@ this can never be made to work without writing a custom Ogg decoder; remove for release
|
|
||||||
/** This is inherited from FLAC__FileDecoder; see
|
|
||||||
* FLAC__file_decoder_get_decode_position().
|
|
||||||
*
|
|
||||||
* \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 there was an error from
|
|
||||||
* the 'tell' callback.
|
|
||||||
*/
|
|
||||||
OggFLAC_API FLAC__bool OggFLAC__file_decoder_get_decode_position(const OggFLAC__FileDecoder *decoder, FLAC__uint64 *position);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Initialize the decoder instance.
|
/** Initialize the decoder instance.
|
||||||
* Should be called after OggFLAC__file_decoder_new() and
|
* Should be called after OggFLAC__file_decoder_new() and
|
||||||
* OggFLAC__file_decoder_set_*() but before any of the
|
* OggFLAC__file_decoder_set_*() but before any of the
|
||||||
|
|||||||
@@ -738,25 +738,6 @@ OggFLAC_API unsigned OggFLAC__seekable_stream_decoder_get_sample_rate(const OggF
|
|||||||
*/
|
*/
|
||||||
OggFLAC_API unsigned OggFLAC__seekable_stream_decoder_get_blocksize(const OggFLAC__SeekableStreamDecoder *decoder);
|
OggFLAC_API unsigned OggFLAC__seekable_stream_decoder_get_blocksize(const OggFLAC__SeekableStreamDecoder *decoder);
|
||||||
|
|
||||||
#if 0
|
|
||||||
@@@@@@ this can never be made to work without writing a custom Ogg decoder; remove for release
|
|
||||||
/** Returns the decoder's current read position within the stream.
|
|
||||||
* This is inherited from FLAC__SeekableStreamDecoder; see
|
|
||||||
* FLAC__seekable_stream_decoder_get_decode_position().
|
|
||||||
*
|
|
||||||
* \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 there was an error from
|
|
||||||
* the 'tell' callback.
|
|
||||||
*/
|
|
||||||
/*@@@@@@ probably does not work... is it used? */
|
|
||||||
OggFLAC_API FLAC__bool OggFLAC__seekable_stream_decoder_get_decode_position(const OggFLAC__SeekableStreamDecoder *decoder, FLAC__uint64 *position);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Initialize the decoder instance.
|
/** Initialize the decoder instance.
|
||||||
* Should be called after OggFLAC__seekable_stream_decoder_new() and
|
* Should be called after OggFLAC__seekable_stream_decoder_new() and
|
||||||
* OggFLAC__seekable_stream_decoder_set_*() but before any of the
|
* OggFLAC__seekable_stream_decoder_set_*() but before any of the
|
||||||
|
|||||||
@@ -456,16 +456,6 @@ OggFLAC_API unsigned OggFLAC__file_decoder_get_blocksize(const OggFLAC__FileDeco
|
|||||||
return OggFLAC__seekable_stream_decoder_get_blocksize(decoder->private_->seekable_stream_decoder);
|
return OggFLAC__seekable_stream_decoder_get_blocksize(decoder->private_->seekable_stream_decoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
@@@@@@ this can never be made to work without writing a custom Ogg decoder; remove for release
|
|
||||||
OggFLAC_API FLAC__bool OggFLAC__file_decoder_get_decode_position(const OggFLAC__FileDecoder *decoder, FLAC__uint64 *position)
|
|
||||||
{
|
|
||||||
FLAC__ASSERT(0 != decoder);
|
|
||||||
FLAC__ASSERT(0 != decoder->private_);
|
|
||||||
return OggFLAC__seekable_stream_decoder_get_decode_position(decoder->private_->seekable_stream_decoder, position);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
OggFLAC_API FLAC__bool OggFLAC__file_decoder_process_single(OggFLAC__FileDecoder *decoder)
|
OggFLAC_API FLAC__bool OggFLAC__file_decoder_process_single(OggFLAC__FileDecoder *decoder)
|
||||||
{
|
{
|
||||||
FLAC__bool ret;
|
FLAC__bool ret;
|
||||||
|
|||||||
@@ -541,22 +541,6 @@ OggFLAC_API unsigned OggFLAC__seekable_stream_decoder_get_blocksize(const OggFLA
|
|||||||
return OggFLAC__stream_decoder_get_blocksize(decoder->private_->stream_decoder);
|
return OggFLAC__stream_decoder_get_blocksize(decoder->private_->stream_decoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
@@@@@@ this can never be made to work without writing a custom Ogg decoder; remove for release
|
|
||||||
OggFLAC_API FLAC__bool OggFLAC__seekable_stream_decoder_get_decode_position(const OggFLAC__SeekableStreamDecoder *decoder, FLAC__uint64 *position)
|
|
||||||
{
|
|
||||||
FLAC__ASSERT(0 != decoder);
|
|
||||||
FLAC__ASSERT(0 != decoder->private_);
|
|
||||||
FLAC__ASSERT(0 != position);
|
|
||||||
|
|
||||||
if(decoder->private_->tell_callback(decoder, position, decoder->private_->client_data) != OggFLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK)
|
|
||||||
return false;
|
|
||||||
FLAC__ASSERT(*position >= OggFLAC__stream_decoder_get_input_bytes_unconsumed(decoder->private_->stream_decoder));
|
|
||||||
*position -= OggFLAC__stream_decoder_get_input_bytes_unconsumed(decoder->private_->stream_decoder);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
OggFLAC_API FLAC__bool OggFLAC__seekable_stream_decoder_flush(OggFLAC__SeekableStreamDecoder *decoder)
|
OggFLAC_API FLAC__bool OggFLAC__seekable_stream_decoder_flush(OggFLAC__SeekableStreamDecoder *decoder)
|
||||||
{
|
{
|
||||||
FLAC__ASSERT(0 != decoder);
|
FLAC__ASSERT(0 != decoder);
|
||||||
|
|||||||
Reference in New Issue
Block a user