Flutter AudioPlayer "spam" same asset sound
I need an AudioPlayer in Flutter that, even if one sound is currently playing, if I play another one, the previous one cancels and the new one goes. This works if I do this: audioPlayer.setReleaseMode(ReleaseMode.stop); The problem is, if I…