Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Winidow Media Player in VB6

  1. #1
    Low Bitrate farolfo's Avatar
    Join Date
    Apr 2004
    Posts
    69

    Winidow Media Player in VB6

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

  2. #2
    Variable Bitrate
    Join Date
    Sep 2003
    Location
    Wilkes Barre, Pa
    Posts
    233
    Quote 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.

  3. #3
    Low Bitrate farolfo's Avatar
    Join Date
    Apr 2004
    Posts
    69
    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

  4. #4
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    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.

  5. #5
    Low Bitrate farolfo's Avatar
    Join Date
    Apr 2004
    Posts
    69
    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

  6. #6
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    Yes but if you call: FSound_Close before you exit the IDE Fmod will not crash VB ! Try...

  7. #7
    Variable Bitrate
    Join Date
    Sep 2003
    Location
    Wilkes Barre, Pa
    Posts
    233
    Quote 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?

  8. #8
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    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/

  9. #9
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    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.

  10. #10
    Variable Bitrate
    Join Date
    Sep 2003
    Location
    Wilkes Barre, Pa
    Posts
    233
    Quote 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.

Page 1 of 2 12 LastLast

Similar Threads

  1. 4:3 aspect ratio with windows media player
    By Mikesz in forum Software & Software Development
    Replies: 4
    Last Post: 02-24-2006, 03:10 AM
  2. Media player that works with iTunes?
    By serendipity in forum Software & Software Development
    Replies: 6
    Last Post: 01-18-2005, 07:47 AM
  3. Media Car video player
    By MatrixPC in forum MediaCar
    Replies: 2
    Last Post: 03-22-2004, 12:33 PM
  4. windows media player
    By llmask in forum ME Archive
    Replies: 1
    Last Post: 08-11-2003, 09:24 AM
  5. media player not working on comp?
    By cubanmoses in forum Software & Software Development
    Replies: 2
    Last Post: 07-10-2003, 12:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •