search for: file_info_

Displaying 8 results from an estimated 8 matches for "file_info_".

Did you mean: file_info
2004 Sep 10
2
getting framesize in client
.../* (24/8) for max bytes per sample */ +#define BITRATE_HIST_SEGMENT_MSEC 500 +/* 500ms * 50 = 25s should be enough */ +#define BITRATE_HIST_SIZE 50 +static unsigned bitrate_history[BITRATE_HIST_SIZE]; static unsigned wide_samples_in_reservoir_ = 0; static FLAC__FileDecoder *decoder_ = 0; static file_info_struct file_info_; @@ -188,7 +193,6 @@ void FLAC_XMMS__play_file(char *filename) { FILE *f; - gchar *ret; wide_samples_in_reservoir_ = 0; audio_error_ = false; @@ -219,10 +223,8 @@ return; } - ret = flac_format_song_title(filename); - flac_ip.set_info(ret, file_info_.length_in_msec,...
2004 Sep 10
0
getting framesize in client
.../* (24/8) for max bytes per sample */ +#define BITRATE_HIST_SEGMENT_MSEC 500 +/* 500ms * 50 = 25s should be enough */ +#define BITRATE_HIST_SIZE 50 +static unsigned bitrate_history[BITRATE_HIST_SIZE]; static unsigned wide_samples_in_reservoir_ = 0; static FLAC__FileDecoder *decoder_ = 0; static file_info_struct file_info_; @@ -188,7 +193,6 @@ void FLAC_XMMS__play_file(char *filename) { FILE *f; - gchar *ret; wide_samples_in_reservoir_ = 0; audio_error_ = false; @@ -219,10 +223,8 @@ return; } - ret = flac_format_song_title(filename); - flac_ip.set_info(ret, file_info_.length_in_msec,...
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
4
xmms-plugin problems
...ples_decoded = 0; Second problem: Visual plugins are slow. It's caused by flac_ip.add_vis_pcm, it gets too many samples (4.5Ksamples) at one call. Solution is in calling this with only 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 =...
2004 Sep 10
0
getting framesize in client
...attached patch. Thanks, -- Miroslav 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...
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
...il.h> *************** *** 41,46 **** --- 44,50 ---- #include "configure.h" #include "wrap_id3.h" #include "charset.h" + #include "http.h" #ifdef min #undef min *************** *** 68,73 **** --- 72,106 ---- DitherContext dither_context; } file_info_struct; + typedef FLAC__StreamDecoderWriteStatus (*WriteCallback) (const void *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data); + typedef void (*MetadataCallback) (const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data); + typedef vo...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...esult; } -void FLAC_XMMS__init() +void FLAC_XMMS__init(void) { ConfigFile *cfg; FLAC__uint32 test = 1; @@ -368,7 +368,7 @@ void FLAC_XMMS__play_file(char *filename pthread_create(&decode_thread_, NULL, play_loop_, NULL); } -void FLAC_XMMS__stop() +void FLAC_XMMS__stop(void) { 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(); } -v...