tapSoundEffect method
点击音效 assetPath : 'assets/sounds/win_sound.mp3'
Implementation
void tapSoundEffect(String assetPath) async {
Logger.log('Playing sound from: $assetPath');
try {
await _audioPool[0].play(assetPath.replaceAll('assets/', ''));
} catch (e) {
Logger.log('Error playing sound: $e');
}
}