YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

In-Game: Stopping an inaudible voice should make it immediately stealable #7789

Closed toby-yoyo closed 3 weeks ago

toby-yoyo commented 3 weeks ago

Description

Stopping sounds is usually an async process - we allow the sound to cleanly ramp down to silence during the next mix on the audio thread before deinitialising the voice that was playing it.

However, that process isn't necessary for sounds that cannot be heard, such as:

For voices in these states, we should be able to 'force-stop' them without any negative effects and make them immediately available to play another sound during the same frame.

Steps To Reproduce

Which version of GameMaker are you reporting this issue for?

IDE v9.9.1.798 Runtime v9.9.1.960

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

Which platform(s) are you seeing the problem on?

Windows

2afbb86c-2e68-41b8-b352-050851385b49

toby-yoyo commented 3 weeks ago

Allowed inaudible voices to be immediately stolen.

sihammill commented 1 week ago

Fix verified in IDE v2024.1100.0.641 Runtime v2024.1100.0.663