search for: output_time

Displaying 7 results from an estimated 7 matches for "output_time".

2004 Sep 10
0
getting framesize in client
..._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; file_info_.eof = false; wide_samples_in_reservoir_ = 0; @@ -413,7 +413,7 @@ else { /* display the right bitrate from history */ unsigned bh_index_o = flac_ip.output->output_time() / BITRA...
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
2
getting framesize in client
....seek_to_in_sec == -1) flac_ip.output->write_audio(sample_buffer_, bytes); + + /* compute current bitrate */ + + written_time = flac_ip.output->written_time(); + bh_index_w = written_time / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE ; + bh_index_o = flac_ip.output->output_time() / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE ; + if(bh_index_w != bh_index_last_w && wide_samples_in_reservoir_ < SAMPLES_PER_WRITE) { + bh_index_last_w = bh_index_w; + if(!FLAC__file_decoder_get_decode_position(decoder_, &decode_position)) + decode_position = 0;...
2004 Sep 10
0
getting framesize in client
...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; wide_samples_in_reservoir_ = 0; } } + else { + /* display the right bitrate from history */ + unsigned bh_index_o = flac_ip.output->output_time() / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE; + if(bh_index_o != bh_index_last_o && bh_index_last_w != bh_index_o) { + bh_index_last_o = bh_index_o; + flac_ip.set_info(file_info_.title, file_info_.length_in_msec, bitrate_history[bh_index_o], file_info_.sample_rate, file_info_.c...
2000 Sep 24
4
Possible memory leak / xmms input plugin
Hi list, It seems that when playing several OggVorbis files under xmms, there is a memory leak. It's a rather annoying problem because when you have a playlist of 100+ files, xmms will at the end eat something like 100M or more.. Such a memory leak have been reported inside xmms-1.2.2 code and I could see it playing Ogg files and mp3 files ; upgrading to 1.2.3 solves the problem with mp3
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
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...id) { if(file_info_.is_playing) { file_info_.is_playing = false; @@ -397,7 +397,7 @@ void FLAC_XMMS__seek(int time) } } -int FLAC_XMMS__get_time() +int FLAC_XMMS__get_time(void) { if(audio_error_) return -2; @@ -407,7 +407,7 @@ int FLAC_XMMS__get_time() return flac_ip.output->output_time(); } -void FLAC_XMMS__cleanup() +void FLAC_XMMS__cleanup(void) { decoder_func_table_ -> safe_decoder_delete(decoder_); decoder_ = 0; @@ -668,7 +668,7 @@ static const decoder_funcs_t HTTP_DECODE static decoder_funcs_t const *decoder_func_table_; -static void init_decoder_func_tables(...