Announcement

Collapse
No announcement yet.

Winidow Media Player in VB6

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Winidow Media Player in VB6

    Hi. Someone know how I can use the visualizzation and the equalizer of wmp in Visual Basic 6 ?

  • #2
    Originally posted by farolfo
    Hi. Someone know how I can use the visualizzation and the equalizer of wmp in Visual Basic 6 ?
    Sadly you can't change the visuals or effect the EQ with VB6. It seems Microsoft only wanted us to be able to do so much with it. Sadly other then viewing the current visual it would be better to just use the MMControl.

    This is my main reason for changing to fmod.
    www.DurangoSUV.com

    Comment


    • #3
      I've changed to WMP because FMOD causes many crash in my IDE. If we can find the way to use the not public class of a control we must use visuals effect or EQ of windows media player

      Comment


      • #4
        Using FMOD in VB you must close FMOD before exit VB (FSound_Close).

        FMOD is much better that WMP. You can control FMOD with WMP you can only play...

        Try http://xmedia.sphosting.com/ that has a OCX wrapper for FMOD that makes it easyer to use in VB.

        Comment


        • #5
          Thak you jeep! I go to see now. I know fmod have more function but the problem of the crash is when the ide stop the project for an error no when I press stop button of ide

          Comment


          • #6
            Yes but if you call: FSound_Close before you exit the IDE Fmod will not crash VB ! Try...

            Comment


            • #7
              Originally posted by farolfo
              Thak you jeep! I go to see now. I know fmod have more function but the problem of the crash is when the ide stop the project for an error no when I press stop button of ide
              I had the same problem. If I ended a song without starting up a new one VB would crash completely out. I did like Jeep said and closed fmod.

              Also has anyone been able to get the EQ to work with fmod using anything other then DirectSound?
              www.DurangoSUV.com

              Comment


              • #8
                You must run Fmod in DirectSound to use DSP, Eq etc. FMod can be tricky to get working, but when it does it's nice. Check out Fmod forum, lots of ideas: + http://www.fmod.org/forum/

                Comment


                • #9
                  In C++ I was able to change and query the visualizations in WMP by creating a skin with javascript functions that change the visualization then sending my program as a COM object to the skin with IWMPRemoteMediaServices::GetScriptableObject and passing back the javascript functions as pointers that I can call later to change whatever about the visualizations. This was extremely complicated to do in C++ and I don't know if you could even do it in VB.

                  One would think that you could do the same with the equalizer since you can access the equalizer in javascript in custom skins, but your just SOL here. It turns out that microsoft licenses the code for the equalizer used in WMP so they can't legally allow access to the equalizer according to thier agreement. The equalizer won't work in any shape or form in remoted applications .
                  StreetDeck.com Developer (I am Chuck)
                  Get StreetDeck at http://www.streetdeck.com
                  The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

                  Comment


                  • #10
                    Originally posted by Jeep
                    You must run Fmod in DirectSound to use DSP, Eq etc. FMod can be tricky to get working, but when it does it's nice. Check out Fmod forum, lots of ideas: + http://www.fmod.org/forum/
                    Thanks Jeep. I wasn't 100% sure you needed to run DirectSound to use any of the FX controls.

                    farolfo try using this at the end of your songs (and stop button).
                    FSOUND_SetPaused FSOUND_SYSTEMCHANNEL, True

                    And when you hit play this
                    FSOUND_SetPaused FSOUND_SYSTEMCHANNEL, False

                    It seems to work well the only draw back if it you are streaming you music it will play the last bit in your buffer before starting to play again.. I'm currently trying to clear the buffer before playing.
                    www.DurangoSUV.com

                    Comment


                    • #11
                      Originally posted by god_of_cpu
                      In C++ I was able to change and query the visualizations in WMP by creating a skin with javascript functions that change the visualization then sending my program as a COM object to the skin with IWMPRemoteMediaServices::GetScriptableObject and passing back the javascript functions as pointers that I can call later to change whatever about the visualizations. This was extremely complicated to do in C++ and I don't know if you could even do it in VB.

                      One would think that you could do the same with the equalizer since you can access the equalizer in javascript in custom skins, but your just SOL here. It turns out that microsoft licenses the code for the equalizer used in WMP so they can't legally allow access to the equalizer according to thier agreement. The equalizer won't work in any shape or form in remoted applications .
                      In VB may be very simple change WMP visualization, but the problem is that the class to drive visualization is not public and vb can't access to non public class...

                      Comment

                      Working...
                      X