Changeset 391 for xmms-musepack/branches/r2d/src/libmpc.cpp
- Timestamp:
- 04/05/08 20:33:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xmms-musepack/branches/r2d/src/libmpc.cpp
r361 r391 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);105 104 xmms_cfg_free(cfg); 106 105 } … … 153 152 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(bitrateCheck), pluginConfig.dynamicBitrate); 154 153 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);160 154 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), generalSet, gtk_label_new("Plugin")); 161 155 … … 234 228 tb = GTK_TOGGLE_BUTTON(widgets.bitrateCheck); 235 229 pluginConfig.dynamicBitrate = gtk_toggle_button_get_active(tb); 236 tb = GTK_TOGGLE_BUTTON(widgets.seekCheck);237 pluginConfig.fastSeek = gtk_toggle_button_get_active(tb);238 230 tb = GTK_TOGGLE_BUTTON(widgets.albumCheck); 239 231 pluginConfig.albumGain = gtk_toggle_button_get_active(tb); … … 245 237 xmms_cfg_write_boolean (cfg, "musepack", "dynamicBitrate", pluginConfig.dynamicBitrate); 246 238 xmms_cfg_write_boolean (cfg, "musepack", "replaygain", pluginConfig.replaygain); 247 xmms_cfg_write_boolean (cfg, "musepack", "fastSeek", pluginConfig.fastSeek);248 239 xmms_cfg_write_default_file (cfg); 249 240 … … 781 772 MpcPlugin.set_info(track.display, track.length, track.bitrate, track.sampleFreq, track.channels); 782 773 783 // mpc_decoder_set_seeking(decoder, &info, pluginConfig.fastSeek);784 774 setReplaygain(demux); 785 775 … … 869 859 static void setReplaygain(mpc_demux * d) 870 860 { 871 mpc_set_replay_level(d, 64.82, pluginConfig.replaygain,861 mpc_set_replay_level(d, MPC_OLD_GAIN_REF, pluginConfig.replaygain, 872 862 !pluginConfig.albumGain, pluginConfig.clipPrevention); 873 863 }
Note: See TracChangeset
for help on using the changeset viewer.