Skip to content

Commit a8743e8

Browse files
committed
feat: sounds max stream
1 parent 9b3a61e commit a8743e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/material/audios.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SoundState extends State<Sound> {
4545
@override
4646
void initState() {
4747
super.initState();
48-
_pool = Soundpool(streamType: StreamType.music);
48+
_pool = Soundpool(streamType: StreamType.music, maxStreams: 4);
4949
_soundIds = Map();
5050
for (var value in _SOUNDS) {
5151
scheduleMicrotask(() async {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
flutter_localizations:
1919
sdk: flutter
2020
overlay_support: ^0.0.4
21-
soundpool: ^0.4.1
21+
soundpool: ^0.5.0
2222

2323
dev_dependencies:
2424
flutter_test:

0 commit comments

Comments
 (0)