08-07-2024, 12:58 AM
Not to say it's a bad idea or anything, but how the heck would one implement it?
Let's say me hero has a zappy gun. I load the "pew pew" sound file.
I fire off three zaps.
_SNDPLAYCOPY "pew pew"
_SNDPLAYCOPY "pew pew"
_SNDPLAYCOPY "pew pew"
Now, the second one hits the enemy. How would _SNDSTOPCOPY know to stop that second "pew pew" and not the first or third? Wouldn't it need a handle to specify which sound to actually stop?
And if it does, then wouldn't it basically be the exact same as _SNDCOPY?
How could you ever specify which copy to stop, without a handle, and if you have a handle, why wouldn't the existing commands already handle the issue?
Let's say me hero has a zappy gun. I load the "pew pew" sound file.
I fire off three zaps.
_SNDPLAYCOPY "pew pew"
_SNDPLAYCOPY "pew pew"
_SNDPLAYCOPY "pew pew"
Now, the second one hits the enemy. How would _SNDSTOPCOPY know to stop that second "pew pew" and not the first or third? Wouldn't it need a handle to specify which sound to actually stop?
And if it does, then wouldn't it basically be the exact same as _SNDCOPY?
How could you ever specify which copy to stop, without a handle, and if you have a handle, why wouldn't the existing commands already handle the issue?