Soundpool constructor
- @Deprecated('Use `fromOptions` instead')
- StreamType streamType = StreamType.music,
- int maxStreams = 1,
Creates the Soundpool instance with stream type setting set.
Soundpool can play up to maxStreams
of simultaneous streams
Note: Optional streamType
parameter has effect on Android only.
Implementation
@Deprecated('Use `fromOptions` instead')
factory Soundpool(
{StreamType streamType = StreamType.music, int maxStreams = 1}) =>
Soundpool.fromOptions(
options: SoundpoolOptions(
streamType: streamType,
maxStreams: maxStreams,
),
);