pull/320/head
Erick Zanardo 3 years ago
parent 1f59772bac
commit ed5794a579

@ -6,6 +6,7 @@ import 'package:flame_audio/flame_audio.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:pinball_audio/gen/assets.gen.dart'; import 'package:pinball_audio/gen/assets.gen.dart';
<<<<<<< HEAD
/// Sounds available for play /// Sounds available for play
enum PinballAudio { enum PinballAudio {
/// Google /// Google
@ -24,6 +25,8 @@ enum PinballAudio {
gameOverVoiceOver, gameOverVoiceOver,
} }
=======
>>>>>>> e6fa2ea (docs nits)
/// Defines the contract of the creation of an [AudioPool]. /// Defines the contract of the creation of an [AudioPool].
typedef CreateAudioPool = Future<AudioPool> Function( typedef CreateAudioPool = Future<AudioPool> Function(
String sound, { String sound, {
@ -33,20 +36,16 @@ typedef CreateAudioPool = Future<AudioPool> Function(
String? prefix, String? prefix,
}); });
/// Function that defines the contract for playing a single /// Defines the contract for playing a single audio.
/// audio
typedef PlaySingleAudio = Future<void> Function(String); typedef PlaySingleAudio = Future<void> Function(String);
/// Function that defines the contract for looping a single /// Defines the contract for looping a single audio.
/// audio
typedef LoopSingleAudio = Future<void> Function(String); typedef LoopSingleAudio = Future<void> Function(String);
/// Function that defines the contract for pre fetching an /// Defines the contract for pre fetching an audio.
/// audio
typedef PreCacheSingleAudio = Future<void> Function(String); typedef PreCacheSingleAudio = Future<void> Function(String);
/// Function that defines the contract for configuring /// Defines the contract for configuring an [AudioCache] instance.
/// an [AudioCache] instance
typedef ConfigureAudioCache = void Function(AudioCache); typedef ConfigureAudioCache = void Function(AudioCache);
abstract class _Audio { abstract class _Audio {

Loading…
Cancel
Save