Results 1 to 2 of 2

Thread: Music help

  1. #1
    Guest

    Post

    Is there any way to play sound formats other than midi and wave in VB? Specifically, I was wondering if there's any way of playing MOD, IT, XM, etc. Any help would be appreciated.

  2. #2
    Member
    Join Date
    Sep 1999
    Location
    UK
    Posts
    45

    Post

    Here's something which I've copied and pasted as replies to so many that have problems with playing files - hope it's of some use:

    You can use the Microsoft Multimedia Control 6.0 (MCI32.OCX) component which will basically play anything provided that you have got the appropriate codec installed.
    What you might have to do is get MS Windows Media Player 2 and run whatever files through you are likely to play so that it will automatically download and install the appropriate codec (eg. MP3 codec).
    If it will play it through WinMediaPlayer then select the above component and sticj one on your form.

    The use the following code to open files...

    mmcontrol1.filename = commondialog1.filename
    mmcontrol1.command = "open"

    You should be able to use the commands or the controls on the form to control it.

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