Results 1 to 4 of 4

Thread: MP3's - Playing through VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Ontario, Canada
    Posts
    3

    Question

    With the ever-growing technology of audio compression and multimedia, I find myself considering the MP3 file format for playing audio throughout an application to be more appealing than using wav file format.

    My question is this:

    Playing a *.wav is simple (now that I know how).

    How would I go about making the following happen:

    private sub FormLoad()
    PLAY ambient (wav file format) music
    LOOP ambient music until next event
    end sub

    private sub command1_click()
    PAUSE ambient music
    PLAY MP3
    STOP MP3
    RESUME ambient music
    end sub

    private sub FormUnload()
    STOP any music (mp3 or wav)
    end sub

    [end example]

    On another note, how can I mute the default "click" sound that's played anytime I press a command button?

    If you know of any online resources I could peruse, please, suggest them to me. I'd rather find the answers on my own before coming to the forum and asking.

    Thanks in advance,
    _.-=[ ~ Vermithrax ~ ]=-._

  2. #2
    Addicted Member
    Join Date
    Feb 2001
    Location
    Upstate NY
    Posts
    210

    um

    i'm pretty sure (but not completley sure) that you can play an MP3 file using the function used to play a WAV. And what is the default "clicking" sound? The one that is in IE?
    < o >

  3. #3
    Guest
    Download the file attached which contains all the code you need to create an Mp3 Player.
    Attached Files Attached Files

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    I only wish it was that easy. I attempted to change my system sounds to .mp3s. Didn't work.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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