mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add FLAC::Decoder::Stream::get_decode_position()
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
<li>
|
<li>
|
||||||
libFLAC++:
|
libFLAC++:
|
||||||
<ul>
|
<ul>
|
||||||
<li>(none)</li>
|
<li><b>Added</b> FLAC::Decoder::Stream::get_decode_position()</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ namespace FLAC {
|
|||||||
virtual unsigned get_bits_per_sample() const; ///< See FLAC__stream_decoder_get_bits_per_sample()
|
virtual unsigned get_bits_per_sample() const; ///< See FLAC__stream_decoder_get_bits_per_sample()
|
||||||
virtual unsigned get_sample_rate() const; ///< See FLAC__stream_decoder_get_sample_rate()
|
virtual unsigned get_sample_rate() const; ///< See FLAC__stream_decoder_get_sample_rate()
|
||||||
virtual unsigned get_blocksize() const; ///< See FLAC__stream_decoder_get_blocksize()
|
virtual unsigned get_blocksize() const; ///< See FLAC__stream_decoder_get_blocksize()
|
||||||
|
virtual bool get_decode_position(FLAC__uint64 *position) const; ///< See FLAC__stream_decoder_get_decode_position()
|
||||||
|
|
||||||
virtual ::FLAC__StreamDecoderInitStatus init(); ///< Seek FLAC__stream_decoder_init_stream()
|
virtual ::FLAC__StreamDecoderInitStatus init(); ///< Seek FLAC__stream_decoder_init_stream()
|
||||||
virtual ::FLAC__StreamDecoderInitStatus init_ogg(); ///< Seek FLAC__stream_decoder_init_ogg_stream()
|
virtual ::FLAC__StreamDecoderInitStatus init_ogg(); ///< Seek FLAC__stream_decoder_init_ogg_stream()
|
||||||
|
|||||||
@@ -159,6 +159,12 @@ namespace FLAC {
|
|||||||
return ::FLAC__stream_decoder_get_blocksize(decoder_);
|
return ::FLAC__stream_decoder_get_blocksize(decoder_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Stream::get_decode_position(FLAC__uint64 *position) const
|
||||||
|
{
|
||||||
|
FLAC__ASSERT(is_valid());
|
||||||
|
return ::FLAC__stream_decoder_get_decode_position(decoder_, position);
|
||||||
|
}
|
||||||
|
|
||||||
::FLAC__StreamDecoderInitStatus Stream::init()
|
::FLAC__StreamDecoderInitStatus Stream::init()
|
||||||
{
|
{
|
||||||
FLAC__ASSERT(is_valid());
|
FLAC__ASSERT(is_valid());
|
||||||
|
|||||||
Reference in New Issue
Block a user