Apply suggestions from code review

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
pull/461/head
Erick 3 years ago committed by GitHub
parent faf6df60a2
commit 873aee9c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,17 +38,17 @@ class PinballAudioPool {
/// Function to play audios.
final PlaySingleAudio playSingleAudio;
/// How long the sound last.
/// How long the sound lasts.
final Duration duration;
final List<_PlayerEntry> _players = [];
/// Loads the pool
/// Loads the pool.
Future<void> load() async {
await preCacheSingleAudio(path);
}
/// Plays the pool
/// Plays the pool.
Future<void> play({double volume = 1}) async {
AudioPlayer? player;
if (_players.length < poolSize) {

Loading…
Cancel
Save