Midi/Wav/AVI Playing Routines

The actual entry is the file 'Sound & Music.bas', which is a module that you can just add to your program. It has the following features:
  • Sound card detection ( Function HasSoundCard as Boolean )
  • MID file player ( Sub PlayMidi (M$) , Sub StopMidi () )
  • WAV file player ( Sub PlayWave (W$) , Sub PlayWaveAdv (AW$, FLG&) , Sub StopWave () )
  • Play WAVs from RES file ( Sub PlayRESWave (RW$) )
  • Stop all sound ( StopAllSound (Cancel%) )

The included project appears as below :

screen-shot

You can play WAV and MID simultaneously.

I will hopefully add more on to this file in the future. I hope to add features such as:

  • Play MIDs from within RES file.
  • Play multiple WAV files at once.
  • Sound card recognition (AWE64, Turtle Beach, ESS, Adlib, SB16, etc.).

I hope that this program is simplistic enough for you to see how to use this module in your programs.

Download zipped project file (41k)



Comments

  • BTW

    Posted by Brettink on 08/28/2009 03:08am

    This code works with my Vista, i dont know how others cant use it with XP lol

    Reply
  • Thanks

    Posted by Brettink on 08/28/2009 03:06am

    Thank you, your code really helped me

    Reply
  • XP problems

    Posted by Legacy on 02/14/2003 12:00am

    Originally posted by: sharon

    dose anyone know why wont it run on XP ???

    Reply
  • Midi/Wav/AVI Playing Routines

    Posted by Legacy on 05/02/2002 12:00am

    Originally posted by: Sangoku

    Don't work with windows XP

    Reply
  • very nice coding but needs little care

    Posted by Legacy on 12/21/2001 12:00am

    Originally posted by: msdhar

    This is a nice programming one of i seen. very good
    coding but little cre needed when opening mutiple
    wave and midies
    Otherwise it is surly usefull for every one
    thank you.

    Reply
  • Re: Multiple waves!!

    Posted by Legacy on 08/24/2000 12:00am

    Originally posted by: T Haygood

    Please,

    If you do figure out how to play multuple .wav files- please let me know.

    T. Haygood
    audioguy@mindspring.com

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Live Event Date: October 23, 2014 @ 12:00 p.m. ET / 9:00 a.m. PT Despite the current "virtualize everything" mentality, there are advantages to utilizing physical hardware for certain tasks. This is especially true for backups. In many cases, it is clearly in an organization's best interest to make use of physical, purpose-built backup appliances rather than relying on virtual backup software (VBA - Virtual Backup Appliances). Join us for this eSeminar to learn why physical appliances are preferable to …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds