soundpool 0.1.0
soundpool: ^0.1.0 copied to clipboard
A Flutter Sound Pool for playing short media files
soundpool #
A Flutter Sound Pool for playing short media files.
Inspired by Android SoundPool API.
Example:
import 'package:soundpool/soundpool.dart';
Soundpool pool = Soundpool(streamType: StreamType.notification);
int soundId = await rootBundle.load("sounds/dices.m4a").then((ByteData soundData) {
return pool.load(soundData);
});
int streamId = await pool.play(soundId);