Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Command$(count%) - I can't get a value when using the optional argument "(count%)" Unatic 3 517 08-22-2025, 11:58 AM
Last Post: Unatic
  keyword to get the EXE name and the EXE path instead of parsing Command$(0) ? madscijr 8 1,132 07-22-2025, 08:35 PM
Last Post: hsiangch_ong
  Command$ issues eoredson 8 1,344 05-02-2025, 01:42 AM
Last Post: eoredson
  need help playing sound using certain parameters madscijr 0 389 04-01-2025, 03:52 PM
Last Post: madscijr
  Locate command on the ttf graphical screens Helium5793 5 700 03-09-2025, 05:47 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)