Results 1 to 5 of 5

Thread: Equaliser WMP9 SDK HELP!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    31

    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.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    31
    yeah thats what I thought but I have no idea what it needs to be set to

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    31
    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
  •  



Click Here to Expand Forum to Full Width