This commit is contained in:
@ -35,6 +35,9 @@ final class AudioplayersExerciseStepAudioCuePlayer
|
||||
Future<void> _configureAudioContext() async {
|
||||
try {
|
||||
await _player.setAudioContext(_stepCueAudioContext);
|
||||
await _player.setPlayerMode(PlayerMode.lowLatency);
|
||||
await _player.setReleaseMode(ReleaseMode.stop);
|
||||
await _player.setVolume(1);
|
||||
} on Object catch (error) {
|
||||
debugPrint('Audio cue context ignored: $error');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user