Displaying 7 results from an estimated 7 matches for "seek_to_in_sec".
2004 Sep 10
2
getting framesize in client
...-- next part --------------
--- src/plugin_xmms/plugin.c.orig 2002-11-07 18:40:44.000000000 +0100
+++ src/plugin_xmms/plugin.c 2002-11-09 17:28:45.000000000 +0100
@@ -58,6 +58,7 @@
unsigned channels;
unsigned sample_rate;
unsigned length_in_msec;
+ gchar *title;
AFormat sample_format;
int seek_to_in_sec;
FLAC__bool has_replaygain;
@@ -114,6 +115,10 @@
#define SAMPLES_PER_WRITE 512
static FLAC__int32 reservoir_[FLAC__MAX_BLOCK_SIZE * 2/*for overflow*/ * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS];
static FLAC__byte sample_buffer_[SAMPLES_PER_WRITE * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8)]; /* (...
2004 Sep 10
0
getting framesize in client
...-- next part --------------
--- src/plugin_xmms/plugin.c.orig 2002-11-07 18:40:44.000000000 +0100
+++ src/plugin_xmms/plugin.c 2002-11-10 00:40:20.000000000 +0100
@@ -58,6 +58,7 @@
unsigned channels;
unsigned sample_rate;
unsigned length_in_msec;
+ gchar *title;
AFormat sample_format;
int seek_to_in_sec;
FLAC__bool has_replaygain;
@@ -114,6 +115,10 @@
#define SAMPLES_PER_WRITE 512
static FLAC__int32 reservoir_[FLAC__MAX_BLOCK_SIZE * 2/*for overflow*/ * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS];
static FLAC__byte sample_buffer_[SAMPLES_PER_WRITE * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8)]; /* (...
2004 Sep 10
4
xmms-plugin problems
...nly 512samples. Against plugin.c
301,305c301,312
< flac_ip.add_vis_pcm(flac_ip.output->written_time(), file_info_.sample_format, file_info_.channels, bytes, reservoir_);
< while(flac_ip.output->buffer_free() < (int)bytes && file_info_.is_playing && file_info_.seek_to_in_sec == -1)
< xmms_usleep(10000);
< if(file_info_.is_playing && file_info_.seek_to_in_sec == -1)
< flac_ip.output->write_audio(reservoir_, bytes);
---
> unsigned written_bytes = 0, bytes_ = 512 * ((file_info_.bits_per_sample+7)/8) * file_info_.channels;
>...
2004 Sep 10
0
getting framesize in client
...+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_time() / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE;
file_info_.seek_to_in_sec = -1;
fi...
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
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
0
http streaming in the xmms plugin
...coder_finish_(decoder_);
}
}
--- 366,372 ----
pthread_join(decode_thread_, NULL);
}
flac_ip.output->close_audio();
! decoder_func_table_ -> safe_decoder_finish (decoder_);
}
}
***************
*** 288,298 ****
void FLAC_XMMS__seek(int time)
{
! file_info_.seek_to_in_sec = time;
! file_info_.eof = false;
! while(file_info_.seek_to_in_sec != -1)
! xmms_usleep(10000);
}
int FLAC_XMMS__get_time()
--- 377,389 ----
void FLAC_XMMS__seek(int time)
{
! if (decoder_func_table_->seekable) {
! file_info_.seek_to_in_sec = time;
! file_info_.eof = f...