Displaying 14 results from an estimated 14 matches for "flac__file_decoder_get_decode_posit".
2004 Sep 10
2
getting framesize in client
....cz> wrote:
> On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> > On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > > Yeah, it's useful, so now there is a
> > > FLAC__seekable_stream_decoder_get_decode_position() and
> > > FLAC__file_decoder_get_decode_position(). I haven't documented
> > > them yet but you can see an example in
> > > src/metaflac/operations_shorthand_seektable.c where I use it
> > > during seektable creation.
> >
> > Ok, here is patch for "current bitrate" displaying in xmms plugi...
2004 Sep 10
2
getting framesize in client
On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> Yeah, it's useful, so now there is a
> FLAC__seekable_stream_decoder_get_decode_position() and
> FLAC__file_decoder_get_decode_position(). I haven't documented
> them yet but you can see an example in
> src/metaflac/operations_shorthand_seektable.c where I use it
> during seektable creation.
Ok, here is patch for "current bitrate" displaying in xmms plugin and
fix for the artist/performer thing.
Attache...
2004 Sep 26
2
Finding start of audio data using metadata level 2 interface.
I'm attempting to use the metadata level 2 interface to get at the various
interesting bits, which is working fine. But I also need a relevant piece of
data, the offset of where the metadata ends, and the audio blocks begin. I'm
not finding a clear way to reach that number. Is this exposed anywhere?
Thanks.
-D
--
The revolution will be documented.
2005 Oct 16
1
Trivial Implementation for future libFLAC++ releases
Josh,
I added the following trivial implementation of the C++ file decoder
FLAC::Decoder::File::get_decode_position() to my file_decoder.cpp file...
bool File::get_decode_position(FLAC__uint64 *position) const
{
FLAC__ASSERT(is_valid());
return
(bool)::FLAC__file_decoder_get_decode_position(decoder_, position);
}
I would humbly suggest it be included in future libFLAC++ releases.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac/attachments/20051016/06334aec/attachment.htm
2004 Sep 26
2
Finding start of audio data using metadata level 2 interface.
* Josh Coalson <xflac@yahoo.com> shaped the electrons to say...
>not exactly. the metadata interface won't tell you, but you
>can create a decoder (say file decoder), set it up, then call
>
> FLAC__file_decoder_process_until_end_of_metadata(...)
> FLAC__file_decoder_get_decode_position(...)
>
>and that will tell you. the decode position is relative to
>the start of the file even if you have an id3v2 tag in front.
Yeah, I was trying to avoid doing that. This is meant for some fast (as
opposed to the current pure perl version) header parsing only code, not doing
a dec...
2004 Sep 10
0
getting framesize in client
On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > Yeah, it's useful, so now there is a
> > FLAC__seekable_stream_decoder_get_decode_position() and
> > FLAC__file_decoder_get_decode_position(). I haven't documented
> > them yet but you can see an example in
> > src/metaflac/operations_shorthand_seektable.c where I use it
> > during seektable creation.
>
> Ok, here is patch for "current bitrate" displaying in xmms plugin and
It doesn't dis...
2004 Sep 10
3
getting framesize in client
On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote:
> --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> > I have few notes:
> >
> > It seems there is changed API in CVS again. So, what about adding
> > function like
> > unsigned FLAC__format_frame_size(const FLAC__Frame *frame)
> > which returns size of the frame in bytes. This
2004 Sep 10
0
getting framesize in client
...gt; > so I will be adding a function in libFLAC that makes it possible
> > for the client to keep track of this also.
>
> Yes, i know, but it should not be very expensive to compute it.
Yeah, it's useful, so now there is a
FLAC__seekable_stream_decoder_get_decode_position() and
FLAC__file_decoder_get_decode_position(). I haven't documented
them yet but you can see an example in
src/metaflac/operations_shorthand_seektable.c where I use it
during seektable creation.
> > > In some libFLAC files isn't including of config.h.
> > Which ones?
>
> I hope, i see right,
>
> bitb...
2004 Sep 10
0
getting framesize in client
...On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> > > On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > > > Yeah, it's useful, so now there is a
> > > > FLAC__seekable_stream_decoder_get_decode_position() and
> > > > FLAC__file_decoder_get_decode_position(). I haven't documented
> > > > them yet but you can see an example in
> > > > src/metaflac/operations_shorthand_seektable.c where I use it
> > > > during seektable creation.
> > >
> > > Ok, here is patch for "current bitrate"...
2004 Sep 26
0
Finding start of audio data using metadata level 2 interface.
...dio blocks
> begin. I'm
> not finding a clear way to reach that number. Is this exposed
> anywhere?
not exactly. the metadata interface won't tell you, but you
can create a decoder (say file decoder), set it up, then call
FLAC__file_decoder_process_until_end_of_metadata(...)
FLAC__file_decoder_get_decode_position(...)
and that will tell you. the decode position is relative to
the start of the file even if you have an id3v2 tag in front.
native FLAC's metadata system is simple enough that you could
also write a custom metadata skipper pretty easily. you just
have to parse the lengths out of each m...
2004 Sep 27
0
Finding start of audio data using metadata level 2 interface.
...Coalson <xflac@yahoo.com> shaped the electrons to say...
>
> >not exactly. the metadata interface won't tell you, but you
> >can create a decoder (say file decoder), set it up, then call
> >
> > FLAC__file_decoder_process_until_end_of_metadata(...)
> > FLAC__file_decoder_get_decode_position(...)
> >
> >and that will tell you. the decode position is relative to
> >the start of the file even if you have an id3v2 tag in front.
>
> Yeah, I was trying to avoid doing that. This is meant for some fast
> (as
> opposed to the current pure perl version) header...
2005 Sep 16
0
Trivial Implementation for future libFLAC++ releases
Josh,
I added the following trivial implementation of the C++ file decoder
FLAC::Decoder::File::get_decode_position() to my file_decoder.cpp file...
bool File::get_decode_position(FLAC__uint64 *position) const
{
FLAC__ASSERT(is_valid());
return
(bool)::FLAC__file_decoder_get_decode_position(decoder_, position);
}
I would humbly suggest it be included in future libFLAC++ releases.
Thanks!
2006 Mar 19
0
Patch -- Decode Position for libFLAC++ file and seekable_stream decoder
...cpp 25 Jan 2005 04:18:35 -0000 1.9
+++ src/libFLAC++/file_decoder.cpp 20 Mar 2006 05:53:19 -0000
@@ -159,6 +159,12 @@
return ::FLAC__file_decoder_get_blocksize(decoder_);
}
+ bool File::get_decode_position(FLAC__uint64 *position) const
+ {
+ FLAC__ASSERT(is_valid());
+ return
(bool)::FLAC__file_decoder_get_decode_position(decoder_, position);
+ }
+
File::State File::init()
{
FLAC__ASSERT(0 != decoder_);
Index: src/libFLAC++/seekable_stream_decoder.cpp
===================================================================
RCS file: /cvsroot/flac/flac/src/libFLAC++/seekable_stream_decoder.cpp,v
retrieving r...
2004 Sep 10
0
http streaming in the xmms plugin
...e a dialog */
fprintf(stderr, "libxmms-flac: READ ERROR processing frame\n");
file_info_.eof = true;
***************
*** 366,372 ****
}
blocksize = sample_buffer_last_ - sample_buffer_first_ - s;
decode_position_frame_last = decode_position_frame;
! if(!FLAC__file_decoder_get_decode_position(decoder_, &decode_position_frame))
decode_position_frame = 0;
}
if(sample_buffer_last_ - sample_buffer_first_ > 0) {
--- 461,467 ----
}
blocksize = sample_buffer_last_ - sample_buffer_first_ - s;
decode_position_frame_last = decode_position_frame;
!...