Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stopping _SNDPLAYCOPY ?Possible?
#7
I looked into this four or five years ago, and everyone who says it is no easy task, especially to be done the right way, with handles, is absolutely correct. The only Mickey Mouse way around it is to have a second QB64 routine running the sound, that the primary routine kills as soon as you want the sound to stop. You can run that second instance invisible with _screenhide. I haven't tried this method I'm suggesting, but in theory it should work, unless the sound was magically able to complete itself when the app gets killed, which I doubt, but I'm not certain. Now the timing for such a construct might be a bit wacky. I wouldn't rely on SHELL to start the music, but would rather SHELL the second program open at the start, and either communicate with TCP/IP or a continuously monitored database to start the music. Shell with TASKKILL is pretty fast and direct at killing an app, so hopefully not much lag in getting the music to stop.

Pete

- My 2-cents and a big bag of 8066 chips.
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
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



Users browsing this thread: 12 Guest(s)