INTERACT FORUM
Windows => Plug-in Development => Topic started by: PaulSinnema on April 24, 2007, 01:55:38 pm
-
Hi,
I've now implemented the new Event NOTIFY_EQ_CHANGED (works very nice for the 'GetEQBand') and found the folowing. When I disable the Equalizer in the DSP an Event is fired before the boolean is set to False. The 'EQOn' function still return 'true'. This causes my local on/off button to stay in the 'On' position while the DSP checkbox goes to 'Off'. A second click on the checkbox in the DSP Window then causes my button to go to the 'Off' state which in turn sets the DSP checkbox to 'Off' which then stays 'Off'. This little game can be repeated for the 'On' situation as well.
Paul.
-
Hi,
Solved it. Had to remove my eventhandler from the button before setting the value like this.
private void setEQOnOff ()
{
mcMixer = mcRef.GetMJMixer ();
this.checkBoxEQOnOff.CheckedChanged -= new System.EventHandler ( this.checkBoxEQOnOff_CheckedChanged );
this.checkBoxEQOnOff.Checked = mcMixer.EQOn;
this.checkBoxEQOnOff.CheckedChanged += new System.EventHandler ( this.checkBoxEQOnOff_CheckedChanged );
}
Paul.
-
Well, I misinterpreted. It does stop the 2-time-click problem but now when I click the equalizer off in MC it tuns mine on and vice versa. When I click my equalizer button the first click doesn't do anything (because it is already on or off).
The problem still stands.
Paul.
-
When I disable the Equalizer in the DSP an Event is fired before the boolean is set to False. The 'EQOn' function still return 'true'.
What event is fired? The MCC: NOTIFY_EQ_CHANGED event? If so, this event is fired AFTER the boolean changes. If not, what event is it?
j
-
Hi John,
Yep, exactly that event is fired.
Paul.
-
John,
What you see here is in the lower left corner of the image the 2 Events that fired and a display of the EQOn value. The first click disabled the EQ the second enabled it. In the Upper left Corner you can see my button reflecting quite the oposite of the EQOn value. If it were on it would be green.
Paul.
(http://www.paulsinnema.net/images/MC/EQOnOffProblem.gif)
-
Ok, fixed, and I updated the wiki docs a little.
-
John,
Wauw, that's fast. Will it be on the next build?
While I'm at it. Is there a way to store information into the MC configuration for later use?
Paul.
-
Yes, next build.
What do you mean "store information into the MC configuration"? What kind of information exactly? Store it somewhere in the registry?
j
-
I need to set some default on startup but would like the end-user to be able to set them. The Registry is of course a possibilty. Is that where MC stores all it's values?
-
That's what I use for the various sharing servers. Store the values in the registry, but make a dialog box to let the user change them.
j
-
John,
You gave me the right hint. Built it in already. Plugin is nearing it's first beta. Still got a few questions.
- Can I get to the EQ presets of MC?
- Is it possible to steer the other effects (Environment, Subwoofer, Surround, Tempo, Pitch, Rate)?
Wow, is that the time. I'm in bed. See you tomorrow.
Paul.
-
Not now... if they become high demand I can put them in...
j
-
The presets are in the registy. HKCU\Software\JRiver\Media Center 12\Plugins\DSP\MJ DSP\EQ Presets.
-
Now why didn't I think of that. Of course they are in the registry. That'll do. Problem is if JRiver relocates them I will not be able to find them (like the 'Media Center 11' and 'Media Center 12' change. If there's functionality in the program I can always find them.
-
There's a function to return the version number. Use that to work up the complete registry path.
-
Good thinking Scot. I'll implement that in the next version. For now I'm pleased with this version for now. It doesn't have the presets available directly, but if you choose them from the MC Equalizer, mine syncs up. I'll be releasing the first version very soon. How do I upload for betatesters?