Wav and MIDI

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
izidor
Veteran
Posts: 110
Joined: Wed Apr 22, 2009 3:13 am
Contact:

Wav and MIDI

Post by izidor »

How to play wav or midi in qbasic. I have read tutorial on site but they explain how to make wav or midi player not how to play a sound.
izidor
Veteran
Posts: 110
Joined: Wed Apr 22, 2009 3:13 am
Contact:

Post by izidor »

You can place this topic to spam or whatever. Because i found solution. If somebody wants to know how to do it use this commands.

_SNDPLAYFILE (filename$,[sync%],[volume!])
Example:
_SNDPLAYFILE "file.wav",1

I am not sure will this work in other QBasic compiler then QB64.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

NO, those are functions added to QB64.

QB64.NET
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
izidor
Veteran
Posts: 110
Joined: Wed Apr 22, 2009 3:13 am
Contact:

Post by izidor »

Ups my mistake :)
Post Reply