Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stopping _SNDPLAYCOPY ?Possible?
#1
_SNDPLAYCOPY is very handy for repeating a sound needed from multiple sources (sprites, etc..) at the same time, such as multiple gunshots or other sounds from various sources. However, there is no way to stop sounds initiated with _SNDPLAYCOPY that I'm aware of.

Perhaps another sound command such as:

_SNDSTOPCOPY could be considered by the developers?

I realize I can use _SNDCOPY to create a new handle and concurrently play it. However,  one would need to keep track of all those handle copies and then cycle through them all with _SNDSTOP. Take a game like Robotron 2084 that has hundreds of sprites creating many identical sounds and you'll see where I'm going here.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Stopping _SNDPLAYCOPY ?Possible? - by TerryRitchie - 08-06-2024, 09:29 PM
RE: Stopping _SNDPLAYCOPY ?Possible? - by a740g - 08-07-2024, 02:48 PM
RE: Stopping _SNDPLAYCOPY ?Possible? - by Pete - 08-07-2024, 03:44 PM
RE: Stopping _SNDPLAYCOPY ?Possible? - by Pete - 08-07-2024, 11:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Stopping repeated mouse-key press PhilOfPerth 8 855 09-02-2025, 11:28 PM
Last Post: Pete
  Building sounds with _SNDPLAYCOPY? james2464 15 3,138 10-14-2022, 07:51 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: