dispose method
Disposes the audio pool. Then it cannot be used anymore.
Implementation
Future<void> dispose() async {
// Dispose all players
await Future.wait([
...currentPlayers.values.map((e) => e.dispose()),
...availablePlayers.map((e) => e.dispose()),
]);
currentPlayers.clear();
availablePlayers.clear();
}