mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
fix this is async should return a future
This commit is contained in:
@ -29,7 +29,7 @@ class AudioPool {
|
||||
cache = AudioCache(prefix: prefix);
|
||||
}
|
||||
|
||||
void init() async {
|
||||
Future init() async {
|
||||
for (int i = 0; i < minPlayers; i++) {
|
||||
availablePlayers.add(await _createNewAudioPlayer());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user