cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
868 stars 115 forks source link

Use single channel for actor voices #850

Open cxong opened 3 months ago

cxong commented 3 months ago

Actors have both an alert sound and death sound; when you kill them unawares both sounds play which sounds wrong. Instead, actors should have a reference to their currently playing sound, so that when a new sound should be played, the old one is stopped.