-
Equaliser WMP9 SDK HELP!
Hi all,
I am just wondering how i can access the Equaliser settings for media player 9. I have the media player control on my form but when I try the following (got this sample from the net):
Dim Playereq As IWMPEqualizerSettingsCtrl
Playereq.gainLevel1 = 5
Playereq.gainLevel2 = 0
Playereq.gainLevel3 = -5
I get this error:
An unhandled exception of type 'System.NullReferenceException' occurred
Additional information: Object reference not set to an instance of an object.
I have searched all over the place trying to find a solution but to no avail. I read somewhere about only being able to access the Equalizer settings using skins, but again i can find any info/samples on that. Any help would be great.
-
Well, you can't just use an object before initializing it. You must set Playereq equal to something in order to access it.
-
yeah thats what I thought but I have no idea what it needs to be set to
-
Well, I don't know about media player 9, but I would imagine that if you had a reference to a media player object, it would have a reference to the equalizer settings. Are you using a media player object at all?
-
What I have done is install the WMP9 SDK. Added the media player control to my form, the name of it is the default AxWindowsMediaPlayer1. I have looked for methods where I could associate the EQ with the player but havent found anything.