search for: flac_cfg

Displaying 9 results from an estimated 9 matches for "flac_cfg".

2005 Apr 01
1
bug in xmms plugin v 1.1.2
...) ------- plugin.c ------- --- /tmp/sccs.zza4YF Thu Mar 31 20:03:46 2005 +++ plugin.c Mon Mar 28 19:58:20 2005 @@ -219,6 +219,12 @@ is_big_endian_host_ = (*((FLAC__byte*)(&test)))? false : true; + /* make all the config struct strings dynamic, to ease our life */ + flac_cfg.stream.proxy_host = g_strdup(flac_cfg.stream.proxy_host); + flac_cfg.stream.proxy_user = g_strdup(flac_cfg.stream.proxy_user); + flac_cfg.stream.proxy_pass = g_strdup(flac_cfg.stream.proxy_pass); + flac_cfg.stream.save_http_path = g_strdup(flac_cfg.stream.save_http_path); +...
2004 Sep 10
0
http streaming in the xmms plugin
...kWidget *widget); static void flac_configurewin_ok(GtkWidget * widget, gpointer data); static void configure_destroy(GtkWidget * w, gpointer data); *************** *** 129,134 **** --- 156,216 ---- xmms_cfg_write_boolean(cfg, "flac", "output.resolution.replaygain.dither", flac_cfg.output.resolution.replaygain.dither); xmms_cfg_write_int(cfg, "flac", "output.resolution.replaygain.noise_shaping", flac_cfg.output.resolution.replaygain.noise_shaping); xmms_cfg_write_int(cfg, "flac", "output.resolution.replaygain.bps_out", flac_cfg.ou...
2005 Mar 09
1
XMMS plugin: string handling bugs
There are problems in the configure option handling code for http streaming that was added to the XMMS plugin for 1.1.2. In configure.c, flac_cfg.stream.proxy_host and other pointers to strings are initialized with pointers to an empty string "". Subsequent code in FLAC_XMMS__init() and flac_configurewin_ok() passes these pointers to g_free(). Since they don't point to memory that was ever allocated through malloc(), what happ...
2005 May 25
1
[PATCH] Fix wrong use of g_strconcat
...concat. It must be a typo of g_strdup_printf. Also fixed the printf format, too. Takashi --- src/plugin_xmms/http.c-dist 2005-05-25 16:14:03.000000000 +0200 +++ src/plugin_xmms/http.c 2005-05-25 16:17:30.000000000 +0200 @@ -484,7 +484,7 @@ static int http_connect (gchar *url_, gb flac_cfg.stream.use_udp_channel ? udpspace : ""); if (offset && !head) { gchar *temp_dead = temp; - temp = g_strconcat ("%sRange: %ll-\r\n", temp, offset); + temp = g_strdup_printf("%sRange: %llu-\r\n", temp, offset); fprintf (stderr, "%s&q...
2004 Sep 10
2
getting framesize in client
...ile(file_info_.is_playing) { @@ -326,7 +332,8 @@ const unsigned n = min(wide_samples_in_reservoir_, SAMPLES_PER_WRITE); const unsigned delta = n * channels; int bytes; - unsigned i; + unsigned i, written_time, bh_index_w, bh_index_o; + FLAC__uint64 decode_position; if(flac_cfg.output.replaygain.enable && file_info_.has_replaygain) { bytes = (int)FLAC__plugin_common__apply_gain( @@ -365,6 +372,27 @@ xmms_usleep(10000); if(file_info_.is_playing && file_info_.seek_to_in_sec == -1) flac_ip.output->write_audio(sample_buffer_, bytes);...
2004 Sep 10
0
getting framesize in client
...)arg; while(file_info_.is_playing) { @@ -326,7 +331,8 @@ const unsigned n = min(wide_samples_in_reservoir_, SAMPLES_PER_WRITE); const unsigned delta = n * channels; int bytes; - unsigned i; + unsigned i, written_time, bh_index_w; + FLAC__uint64 decode_position; if(flac_cfg.output.replaygain.enable && file_info_.has_replaygain) { bytes = (int)FLAC__plugin_common__apply_gain( @@ -365,6 +371,20 @@ xmms_usleep(10000); if(file_info_.is_playing && file_info_.seek_to_in_sec == -1) flac_ip.output->write_audio(sample_buffer_, bytes);...
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
xmms plugin, fileinfo
..., gpointer data) +{ } -static gint genre_comp_func(gconstpointer a, gconstpointer b) +static void show_tag() { - return strcasecmp(a, b); + FLAC_Plugin__CanonicalTag tag; + + FLAC_plugin__canonical_tag_init(&tag); + FLAC_plugin__canonical_tag_get_combined(current_filename, &tag); + + if(flac_cfg.title.convert_char_set) { + convert_from_file_to_user_in_place(&tag.title); + convert_from_file_to_user_in_place(&tag.composer); + convert_from_file_to_user_in_place(&tag.performer); + convert_from_file_to_user_in_place(&tag.album); + convert_from_file_to_user_in_place(&tag...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
..._FILE] = & FILE_DECODER_FUNCTIONS; DECODER_FUNCS [DECODER_HTTP] = & HTTP_DECODER_FUNCTIONS; --- src/plugin_xmms/configure.h-dist 2005-05-25 16:07:23.000000000 +0200 +++ src/plugin_xmms/configure.h 2005-05-25 16:07:27.000000000 +0200 @@ -69,7 +69,7 @@ typedef struct { extern flac_config_t flac_cfg; extern void FLAC_XMMS__configure(void); -extern void FLAC_XMMS__aboutbox(); +extern void FLAC_XMMS__aboutbox(void); #endif --- src/plugin_xmms/fileinfo.c-dist 2005-05-25 16:24:26.000000000 +0200 +++ src/plugin_xmms/fileinfo.c 2005-05-25 16:24:33.000000000 +0200 @@ -136,7 +136,7 @@ static v...