audio_in_app
A Flutter package for playing audio files. Ideal for games or applications with sound.
4.1.1
Cubel89/audio_in_app
What this package is like to depend on
Last release 1 months ago
28 Jun 2026
Ships unpredictably
gaps range from 8 days to 2.3 years
Nearly every release is documented
notes for 10 of 11 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
11 releases · first in 2022
6 releases in the last 12 months
see the full history below
Release timeline
11 releases · Aug 2022 to Jun 2026
2023
2024
2025
2026
Releases
latest 11-
4.1.128 Jun 2026Release notes
Open source →- Fix (crash on cold start): free the native SoLoud engine on
AppLifecycleState.detached. The engine is a native (C++) singleton that outlives the Dart isolate within the same process (e.g. Android re-creating the Activity without killing the process). Previously the engine kept its FFINativeCallablelisteners pointing at the destroyed isolate, so a later nativevoiceEnded/stateChangedaborted the VM withSIGABRT "Callback invoked after it has been deleted"on the next cold start. The observer now callsSoLoud.deinit()ondetached(which disposes the native callables). Only ondetached, never onpaused(that would silence audio when minimizing or showing an ad). No API changes.
- Fix (crash on cold start): free the native SoLoud engine on
-
4.1.018 Jun 2026Release notes
Open source →- New (non-breaking): load audio from a local file on the device filesystem via
createNewAudioCache(..., source: AudioInAppSource.file), passing an absolute path asroute. Files are loaded withSoLoud.loadFileunder the hood, while assets keep usingSoLoud.loadAsset. Added theAudioInAppSource { asset, file }enum;sourcedefaults toAudioInAppSource.asset. - New (non-breaking):
bool isPlaying(String playerId)returns whether the last started voice (determined or background) is still sounding, so you can detect when a one-shot sound has finished. - Fully backwards compatible: the previous API is unchanged. Callers that omit
sourcekeep loading from assets exactly as before.
- New (non-breaking): load audio from a local file on the device filesystem via
-
4.0.004 Jun 2026Release notes
Open source →- BREAKING (engine): Replaced the internal
audioplayersengine withflutter_soloud(SoLoud C++ engine via FFI). The public Dart API ofAudioInAppis unchanged — no call sites need to be updated — but the platform setup requirements below make this a major release. - BREAKING (SDK): Minimum Flutter raised to
>=3.41.0and Dart to>=3.11.0(required byflutter_soloud). - BREAKING (platform setup):
- Web: add the two
flutter_soloudscripts to yourweb/index.html(see README). - Linux: install the ALSA development library (
libasound2-devon Debian/Ubuntu). - iOS/macOS: when creating release archives, set the Runner target's Strip Style to Non-Global Symbols.
- Web: add the two
- Behavior change: one-shot (
determined) effects now overlap when retriggered (each play creates a new voice), instead of restarting. Background audio keeps a single looping voice per id. - Fixed: short effects no longer fail on Windows release (the original motivation for the migration).
- Removed the iOS priming workaround and the Android
AudioContext/audio-focus workaround — no longer needed with SoLoud.
- BREAKING (engine): Replaced the internal
-
3.1.103 Jun 2026Release notes
Open source →- Removed debug logging that was accidentally shipped in 3.1.0. No functional changes.
-
3.1.003 Jun 2026Release notes
Open source →- Fixed: background music was silent on iOS. The release mode is now set before the iOS priming step; with the default release mode, the priming
stop()released the player's source and the laterresume()produced no sound. - Fixed: on Android, one-shot effects stole the audio focus and paused the app's own background music. A global
AudioContextwithAndroidAudioFocus.noneis now configured so effects and music coexist.
- Fixed: background music was silent on iOS. The release mode is now set before the iOS priming step; with the default release mode, the priming
-
3.0.018 Feb 2026Release notes
Open source →- BREAKING: Updated audioplayers from ^5.2.0 to ^6.5.1
- BREAKING: Minimum Dart SDK raised to >=3.6.0
- BREAKING: Minimum Flutter SDK raised to >=3.13.0
- BREAKING: Removed
audioCacheMapgetter (usecachedPlayerIdsinstead) - BREAKING: Multiple background audios can now play simultaneously (previously, playing one stopped all others)
- Removed
universal_iodependency (replaced withflutter/foundation.dartfor web compatibility) - Added web platform support
- Independent volume control per background audio
- Improved type safety (proper types instead of dynamic)
- Fixed async forEach anti-pattern (was not awaiting iterations)
- Removed deprecated
_ambiguatehelper - Code quality improvements and full API documentation
-
2.1.114 Nov 2023 -
2.1.013 Nov 2023 -
2.0.019 Oct 2023 -
1.0.119 Aug 2022Nothing published for this version
-
1.0.011 Aug 2022Release notes
Open source →- Load the audio to be able to use it later
- Play background audio
- Play punctual audio
- Delete cached loaded audio
- Change sound volume