soundpool 0.3.0

  • Example
  • Installing
  • Versions
  • 85


A Flutter Sound Pool for playing short media files.

Sound Pool caches audio tracks in memory. This can be useful in following scenarios:

  • lower latency between play signal and actual playing of the sound (audio does not need to be read from disc/web),
  • the same sound may be used multiple times.

Inspired by Android SoundPool API.


    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;

0.3.0 (11-12-2018)

  • Upgrade Android Gradle plugin

0.2.0 (05-11-2018)

  • New methods for controlling audio stream:
    • stop
    • pause
    • resume
  • Fixed iOS problem with repeat parameter not working on the first play() call
  • Stream handling wrapper API

0.1.1 (16-09-2018)

  • Fix type cast error in play() (thanks to SpencerCornish)

0.1.0 (10-09-2018)

  • Breaking change
    • Multiple soundpools support
    • Audio stream type may be defined for Soundpool to use (Android only)
      • Every sound loaded for the Soundpool is played on the audio stream Soundpool instace was created with
  • Fix Android app crashing when URI is not reachable

0.0.3 (19-06-2018)

  • Load sound files from URI
  • Fix setVolume() and release() never finishing

0.0.1 (10-06-2018)

  • Initial release.
    • Loading sound files from assets.
    • Playing, stopping and pausing streams.
    • Releasing resources.
  • Works on Android and iOS.



Demonstrates how to use the soundpool plugin.

Getting Started

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  soundpool: ^0.3.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:soundpool/soundpool.dart';
Version Uploaded Documentation Archive
0.3.0 Dec 11, 2018 Go to the documentation of soundpool 0.3.0 Download soundpool 0.3.0 archive
0.2.0 Nov 5, 2018 Go to the documentation of soundpool 0.2.0 Download soundpool 0.2.0 archive
0.1.1 Sep 16, 2018 Go to the documentation of soundpool 0.1.1 Download soundpool 0.1.1 archive
0.1.0 Sep 10, 2018 Go to the documentation of soundpool 0.1.0 Download soundpool 0.1.0 archive
0.0.3+4 Aug 27, 2018 Go to the documentation of soundpool 0.0.3+4 Download soundpool 0.0.3+4 archive
0.0.3+3 Jun 19, 2018 Go to the documentation of soundpool 0.0.3+3 Download soundpool 0.0.3+3 archive
0.0.1+2 Jun 11, 2018 Go to the documentation of soundpool 0.0.1+2 Download soundpool 0.0.1+2 archive
0.0.1+1 Jun 10, 2018 Go to the documentation of soundpool 0.0.1+1 Download soundpool 0.0.1+1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 11, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7
  • Flutter: 1.0.0


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.48.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8