how do you stop a sequence of sounds created with the Sound command?
#11
(08-05-2022, 02:42 PM)bplus Wrote: But I think you CAN control how long Sounds are made, so don't make next sound until ready for it, be a clock watcher.

I thought of this too, and it's a reasonable workaround. 

Still, in the spirit of BASIC being easy, I think SOUND(0,0) ought to be fixed! LoL

And there should be a "stop" command for SNDRAW that just clears that buffer and stops playing sound. 

I have no idea how hard these would be for the QB64 devs to implement. Are either of these trivial, or are we talking some involved stuff? I'm just wondering, no expectations.

For the current case, using _SndPlay / _SndLoop / _SndStop with a WAV file will work for me. 

Later I plan on learning to generate the WAV files from code, that will be a fun project!
Reply


Messages In This Thread
RE: how do you stop a sequence of sounds created with the Sound command? - by madscijr - 08-05-2022, 03:49 PM



Users browsing this thread: 13 Guest(s)