Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
neat _SndRaw example, but how do you stop _SndRaw from playing?
#2
Thumbs Up 
https://qb64phoenix.com/forum/showthread.php?tid=757
If you checked out my code from that thread, you would know how to fix this already. :tu:

You need to check the value of "_SNDRAWLEN" so it doesn't exceed three seconds or some other short period of time to your liking. Do not generate any more sound until the threshold of the sound buffer falls below the expectation. Then when sound generation is finished, it would be a good idea to keep checking the value of "_SNDRAWLEN" until it hits zero and, in the meantime, fade out the sound.
Reply


Messages In This Thread
RE: neat _SndRaw example, but how do you stop _SndRaw from playing? - by mnrvovrfc - 08-17-2022, 09:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  _SNDRAW ahenry3068 2 747 08-27-2025, 11:49 AM
Last Post: a740g
  need help playing sound using certain parameters madscijr 0 400 04-01-2025, 03:52 PM
Last Post: madscijr
  Stop screen from resizing BloodyHash 2 576 05-20-2024, 11:26 AM
Last Post: SMcNeill
  Playing with the mouse NasaCow 13 2,673 12-13-2022, 02:45 PM
Last Post: TempodiBasic
  how do you stop a sequence of sounds created with the Sound command? madscijr 21 5,523 08-06-2022, 02:49 AM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)