Ignore:
Timestamp:
04/05/08 20:33:01 (17 years ago)
Author:
r2d
Message:

xmms-musepack cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xmms-musepack/branches/r2d/src/libmpc.cpp

    r361 r391  
    102102    xmms_cfg_read_boolean(cfg, "musepack", "dynamicBitrate", &pluginConfig.dynamicBitrate);
    103103    xmms_cfg_read_boolean(cfg, "musepack", "replaygain",     &pluginConfig.replaygain);
    104     xmms_cfg_read_boolean(cfg, "musepack", "fastSeek",       &pluginConfig.fastSeek);
    105104    xmms_cfg_free(cfg);
    106105}
     
    153152        gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(bitrateCheck), pluginConfig.dynamicBitrate);
    154153        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);
    160154        gtk_notebook_append_page(GTK_NOTEBOOK(notebook), generalSet, gtk_label_new("Plugin"));
    161155
     
    234228    tb = GTK_TOGGLE_BUTTON(widgets.bitrateCheck);
    235229    pluginConfig.dynamicBitrate = gtk_toggle_button_get_active(tb);
    236     tb = GTK_TOGGLE_BUTTON(widgets.seekCheck);
    237     pluginConfig.fastSeek = gtk_toggle_button_get_active(tb);
    238230    tb = GTK_TOGGLE_BUTTON(widgets.albumCheck);
    239231    pluginConfig.albumGain = gtk_toggle_button_get_active(tb);
     
    245237    xmms_cfg_write_boolean (cfg, "musepack", "dynamicBitrate", pluginConfig.dynamicBitrate);
    246238    xmms_cfg_write_boolean (cfg, "musepack", "replaygain",     pluginConfig.replaygain);
    247     xmms_cfg_write_boolean (cfg, "musepack", "fastSeek",       pluginConfig.fastSeek);
    248239    xmms_cfg_write_default_file (cfg);
    249240
     
    781772    MpcPlugin.set_info(track.display, track.length, track.bitrate, track.sampleFreq, track.channels);
    782773
    783 //      mpc_decoder_set_seeking(decoder, &info, pluginConfig.fastSeek);
    784774    setReplaygain(demux);
    785775
     
    869859static void setReplaygain(mpc_demux * d)
    870860{
    871         mpc_set_replay_level(d, 64.82, pluginConfig.replaygain,
     861        mpc_set_replay_level(d, MPC_OLD_GAIN_REF, pluginConfig.replaygain,
    872862                                                 !pluginConfig.albumGain, pluginConfig.clipPrevention);
    873863}
Note: See TracChangeset for help on using the changeset viewer.