|
-
Aug 1st, 2004, 08:02 PM
#1
Thread Starter
Junior Member
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.
-
Aug 1st, 2004, 08:20 PM
#2
Well, you can't just use an object before initializing it. You must set Playereq equal to something in order to access it.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 1st, 2004, 08:21 PM
#3
Thread Starter
Junior Member
yeah thats what I thought but I have no idea what it needs to be set to
-
Aug 1st, 2004, 08:24 PM
#4
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?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 1st, 2004, 08:26 PM
#5
Thread Starter
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|