Changeset 38
- Timestamp:
- 09/22/06 22:17:45 (18 years ago)
- Location:
- xmms-musepack/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
xmms-musepack/trunk/src/libmpc.cpp
r34 r38 102 102 xmms_cfg_read_boolean(cfg, "musepack", "dynamicBitrate", &pluginConfig.dynamicBitrate); 103 103 xmms_cfg_read_boolean(cfg, "musepack", "replaygain", &pluginConfig.replaygain); 104 xmms_cfg_read_boolean(cfg, "musepack", "fastSeek", &pluginConfig.fastSeek); 104 105 xmms_cfg_free(cfg); 105 106 } … … 152 153 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(bitrateCheck), pluginConfig.dynamicBitrate); 153 154 gtk_box_pack_start(GTK_BOX(gSvbox), bitrateCheck, FALSE, FALSE, 0); 155 156 GtkWidget* seekCheck = gtk_check_button_new_with_label("Enable Fast Seeking"); 157 widgets.seekCheck = seekCheck; 158 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(seekCheck), pluginConfig.fastSeek); 159 gtk_box_pack_start(GTK_BOX(gSvbox), seekCheck, FALSE, FALSE, 0); 154 160 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), generalSet, gtk_label_new("Plugin")); 155 161 … … 228 234 tb = GTK_TOGGLE_BUTTON(widgets.bitrateCheck); 229 235 pluginConfig.dynamicBitrate = gtk_toggle_button_get_active(tb); 236 tb = GTK_TOGGLE_BUTTON(widgets.seekCheck); 237 pluginConfig.fastSeek = gtk_toggle_button_get_active(tb); 230 238 tb = GTK_TOGGLE_BUTTON(widgets.albumCheck); 231 239 pluginConfig.albumGain = gtk_toggle_button_get_active(tb); … … 237 245 xmms_cfg_write_boolean (cfg, "musepack", "dynamicBitrate", pluginConfig.dynamicBitrate); 238 246 xmms_cfg_write_boolean (cfg, "musepack", "replaygain", pluginConfig.replaygain); 247 xmms_cfg_write_boolean (cfg, "musepack", "fastSeek", pluginConfig.fastSeek); 239 248 xmms_cfg_write_default_file (cfg); 240 249 … … 558 567 free(entry); 559 568 freeTags(tags); 560 569 fclose(input); 561 570 } 562 571 else … … 780 789 } 781 790 791 mpc_decoder_set_seeking(&decoder, &info, pluginConfig.fastSeek); 782 792 setReplaygain(info, decoder); 783 793 -
xmms-musepack/trunk/src/libmpc.h
r34 r38 81 81 gboolean albumGain; 82 82 gboolean isEq; 83 gboolean fastSeek; 83 84 iconv_t iFromUTF8; 84 85 iconv_t iToUTF8; … … 90 91 GtkWidget* configBox; 91 92 GtkWidget* bitrateCheck; 93 GtkWidget* seekCheck; 92 94 GtkWidget* clippingCheck; 93 95 GtkWidget* replaygainCheck;
Note: See TracChangeset
for help on using the changeset viewer.