Fixes build (tests), adding ditance method to position, fix linting (formating, quotes), removed uneeded new keywords everywhere

This commit is contained in:
Luan Nico
2019-03-10 15:17:53 -03:00
parent ee429d2cd4
commit 9c69937b5b
35 changed files with 165 additions and 165 deletions

View File

@ -19,14 +19,14 @@ class AudioPool {
bool repeating;
int minPlayers, maxPlayers;
Lock _lock = new Lock();
Lock _lock = Lock();
AudioPool(this.sound,
{this.repeating = false,
this.maxPlayers = 1,
this.minPlayers = 1,
String prefix = 'audio/sfx/'}) {
cache = new AudioCache(prefix: prefix);
cache = AudioCache(prefix: prefix);
}
void init() async {
@ -66,7 +66,7 @@ class AudioPool {
}
Future<AudioPlayer> _createNewAudioPlayer() async {
AudioPlayer player = new AudioPlayer();
AudioPlayer player = AudioPlayer();
String url = (await cache.load(sound)).path;
await player.setUrl(url);
await player.setReleaseMode(ReleaseMode.STOP);