Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

About API & midis

How to play midis in qbasic using the API commands

in windows.

Please include other applications of how API plays midis>>>>>thank u




Comments

  • In order to actually use API, you will need to link in a DLL. Something this complicated requires a better language than basic, like C. I have only found one API command that can be used, and it's sndPlaySound. The ONLY functionality that APIs can give you on the command prompt is the ability to play wav files, and nothing more. This is done through the command sndPlaySound, defined in mmsystem.dll. I don't know why, but this works, even when you don't have mmsystem linked in:


    input "Wav file?";wfile$

    shell "rundll mmsystem,sndPlaySound " + wfile$

    print "Trying to play file..."


    That's it. Enjoy!


  • : I don't know why, but this works, even when you don't have mmsystem linked in:



    It works because you are telling rundll (an exe) to use the function in the dll. All that line does is shell an app.




Sign In or Register to comment.