Soundpool constructor

  1. @Deprecated('Use `fromOptions` instead')
Soundpool({
  1. StreamType streamType = StreamType.music,
  2. 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,
      ),
    );