Displaying 15 results from an estimated 15 matches for "flac__file_decoder_seek_absolute".
2004 Sep 10
3
slow FLAC__file_decoder_seek_absolute()...
Hi,
I checked the archives, but I didn't find anything regarding this
problem. FLAC__file_decoder_seek_absolute takes an incredibly long time
to seek. What can I do about this? How do I fix it?
Here's how I'm calling the function:
if (argc > 2) {
secs = atoi(argv[2]);
seek_point = (FLAC__uint64) secs * sample_rate;
printf("seeking to %d:%02d\n", secs/60, secs%60);
flac_status =...
2004 Sep 10
0
slow FLAC__file_decoder_seek_absolute()...
...'flac'
encoder and default options.
Brendan Dowling
Phatnoise, Inc.
crypt@phatnoise.com
http://www.phatnoise.com/
On Thu, Jan 17, 2002 at 05:46:00PM -0800, Brendan Dowling wrote:
> Hi,
>
> I checked the archives, but I didn't find anything regarding this
> problem. FLAC__file_decoder_seek_absolute takes an incredibly long time
> to seek. What can I do about this? How do I fix it?
>
> Here's how I'm calling the function:
>
>
> if (argc > 2) {
> secs = atoi(argv[2]);
> seek_point = (FLAC__uint64) secs * sample_rate;
> printf("seeking to %d:%02...
2004 Sep 10
0
slow FLAC__file_decoder_seek_absolute()...
...> > http://www.phatnoise.com/
> >
> >
> >
> >
> > On Thu, Jan 17, 2002 at 05:46:00PM -0800, Brendan Dowling wrote:
> > > Hi,
> > >
> > > I checked the archives, but I didn't find anything regarding this
> > > problem. FLAC__file_decoder_seek_absolute takes an incredibly long
> > time
> > > to seek. What can I do about this? How do I fix it?
> > >
> > > Here's how I'm calling the function:
> > >
> > >
> > > if (argc > 2) {
> > > secs = atoi(argv[2]);
> >...
2004 Sep 10
0
Phatbox (was: Re: slow FLAC__file_decoder_seek_absolute()...)
...k. i think i need a new head unit (just looked at the
compatibility section). and i think josh does *cough* need a free demo unit
for umm, testing...
-eddie
>From: Josh Coalson <xflac@yahoo.com>
>To: flac-dev@lists.sourceforge.net
>Subject: [Flac-dev] Phatbox (was: Re: slow
>FLAC__file_decoder_seek_absolute()...)
>Date: Mon, 28 Jan 2002 17:33:54 -0800 (PST)
>
>--- Brendan Dowling <crypt@phatnoise.com> wrote:
> > Thanks Josh. I tested the player with some files encoded by another
> > guy here at work, and seeking into the files seems to work perfectly.
> >
> > So...
2004 Sep 10
2
slow FLAC__file_decoder_seek_absolute()...
...ing
> Phatnoise, Inc.
> crypt@phatnoise.com
> http://www.phatnoise.com/
>
>
>
>
> On Thu, Jan 17, 2002 at 05:46:00PM -0800, Brendan Dowling wrote:
> > Hi,
> >
> > I checked the archives, but I didn't find anything regarding this
> > problem. FLAC__file_decoder_seek_absolute takes an incredibly long
> time
> > to seek. What can I do about this? How do I fix it?
> >
> > Here's how I'm calling the function:
> >
> >
> > if (argc > 2) {
> > secs = atoi(argv[2]);
> > seek_point = (FLAC__uint64) secs * samp...
2004 Sep 10
1
Phatbox (was: Re: slow FLAC__file_decoder_seek_absolute()...)
--- Brendan Dowling <crypt@phatnoise.com> wrote:
> Thanks Josh. I tested the player with some files encoded by another
> guy here at work, and seeking into the files seems to work perfectly.
>
> So the Phatbox now plays FLAC files. Although, it's not yet in the
> standard firmware download from the web page, and encoding is not yet
> included in the capabilities of
2004 Sep 10
1
Can I STOP decoding at an exact sample?
...song in the middle of a flac'd cd. Using the file
decoder, I can seek to the start of the track(index 01 of the cds TOC),
but I then want it to stop playing when it gets to the index 00 of the
next track.
At the moment, I do the following, where length is the length of the
song in samples:
FLAC__file_decoder_seek_absolute(flac_dec, start_sample);
for(int i=0; i<(length/blockSize); i++) {
FLAC__file_decoder_process_one_frame(flac_dec);
}
This is pretty good, with the default block size of 4608 it's accurate
to around a 10th of a second. I am a fussy bastard tho, so I was just
wondering if theres a bet...
2004 Sep 10
0
getting framesize in client
...lav Lichvar
-------------- next part --------------
--- src/plugin_xmms/plugin.c.orig 2002-11-14 08:59:20.000000000 +0100
+++ src/plugin_xmms/plugin.c 2002-11-14 14:33:38.000000000 +0100
@@ -404,7 +404,7 @@
unsigned target_sample = (unsigned)(distance * (double)file_info_.total_samples);
if(FLAC__file_decoder_seek_absolute(decoder_, (FLAC__uint64)target_sample)) {
flac_ip.output->flush(file_info_.seek_to_in_sec * 1000);
- bh_index_last_w = bh_index_last_o = file_info_.seek_to_in_sec * 1000 / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE;
+ bh_index_last_w = bh_index_last_o = flac_ip.output->output_ti...
2004 Sep 10
2
getting framesize in client
...ac_ip.set_info(file_info_.title, file_info_.length_in_msec, bitrate_history[bh_index_o], file_info_.sample_rate, file_info_.channels);
+ }
}
else {
file_info_.eof = true;
@@ -378,6 +406,7 @@
unsigned target_sample = (unsigned)(distance * (double)file_info_.total_samples);
if(FLAC__file_decoder_seek_absolute(decoder_, (FLAC__uint64)target_sample)) {
flac_ip.output->flush(file_info_.seek_to_in_sec * 1000);
+ bh_index_last_w = bh_index_last_o = file_info_.seek_to_in_sec * 1000 / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE;
file_info_.seek_to_in_sec = -1;
file_info_.eof = false;...
2004 Sep 10
0
new checkins
...lusplus
+extern "C" {
+#endif
+
typedef enum {
FLAC__FILE_DECODER_OK = 0,
FLAC__FILE_DECODER_SEEKING, /*@@@ NOTE: unused; remove this in the next minor-version */
@@ -133,5 +137,9 @@
FLAC__bool FLAC__file_decoder_process_remaining_frames(FLAC__FileDecoder *decoder);
FLAC__bool FLAC__file_decoder_seek_absolute(FLAC__FileDecoder *decoder, FLAC__uint64 sample);
+
+#ifdef __cplusplus
+}
+#endif
#endif
Index: format.h
===================================================================
RCS file: /cvsroot/flac/flac/include/FLAC/format.h,v
retrieving revision 1.36
diff -u -r1.36 format.h
--- format.h 4 May 2...
2004 Sep 10
0
getting framesize in client
...e_info_.channels * file_info_.bits_per_sample;
+ decode_position_last = decode_position;
+ written_time_last = written_time;
+ }
}
else {
file_info_.eof = true;
@@ -378,11 +398,20 @@
unsigned target_sample = (unsigned)(distance * (double)file_info_.total_samples);
if(FLAC__file_decoder_seek_absolute(decoder_, (FLAC__uint64)target_sample)) {
flac_ip.output->flush(file_info_.seek_to_in_sec * 1000);
+ bh_index_last_w = bh_index_last_o = file_info_.seek_to_in_sec * 1000 / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE;
file_info_.seek_to_in_sec = -1;
file_info_.eof = false;...
2004 Sep 10
2
getting framesize in client
--- Miroslav Lichvar <lichvarm@phoenix.inf.upol.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
2004 Sep 10
3
new checkins
FYI, I have checked in a few interesting things. One is a
speedup to the decoder (about 15% improvement in overall
decode time). Another is a new interface to FLAC file
metadata. If you're curious look at include/FLAC/metadata.h.
It is basically a collection of object manipulation routines
and iterators that make it pretty easy to add/edit/delete
FLAC metadata in files efficiently. The
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
http streaming in the xmms plugin
...405,411 ****
}
else
xmms_usleep(10000);
! if(file_info_.seek_to_in_sec != -1) {
const double distance = (double)file_info_.seek_to_in_sec * 1000.0 / (double)file_info_.length_in_msec;
unsigned target_sample = (unsigned)(distance * (double)file_info_.total_samples);
if(FLAC__file_decoder_seek_absolute(decoder_, (FLAC__uint64)target_sample)) {
--- 500,506 ----
}
else
xmms_usleep(10000);
! if(decoder_func_table_->seekable && file_info_.seek_to_in_sec != -1) {
const double distance = (double)file_info_.seek_to_in_sec * 1000.0 / (double)file_info_.length_in_msec;...