PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 11
  1. 4.1.1 28 Jun 2026
    Release notes

    fix: liberar el motor de audio en detached para evitar crash FFI en a…

    Open source →
    Release notes
    • 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 FFI NativeCallable listeners pointing at the destroyed isolate, so a later native voiceEnded/stateChanged aborted the VM with SIGABRT "Callback invoked after it has been deleted" on the next cold start. The observer now calls SoLoud.deinit() on detached (which disposes the native callables). Only on detached, never on paused (that would silence audio when minimizing or showing an ad). No API changes.
    Open source →
  2. 4.1.0 18 Jun 2026
    Release notes
    • New (non-breaking): load audio from a local file on the device filesystem via createNewAudioCache(..., source: AudioInAppSource.file), passing an absolute path as route. Files are loaded with SoLoud.loadFile under the hood, while assets keep using SoLoud.loadAsset. Added the AudioInAppSource { asset, file } enum; source defaults to AudioInAppSource.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 source keep loading from assets exactly as before.
    Open source →
  3. 4.0.0 04 Jun 2026
    Release notes
    • BREAKING (engine): Replaced the internal audioplayers engine with flutter_soloud (SoLoud C++ engine via FFI). The public Dart API of AudioInApp is 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.0 and Dart to >=3.11.0 (required by flutter_soloud).
    • BREAKING (platform setup):
      • Web: add the two flutter_soloud scripts to your web/index.html (see README).
      • Linux: install the ALSA development library (libasound2-dev on Debian/Ubuntu).
      • iOS/macOS: when creating release archives, set the Runner target's Strip Style to Non-Global Symbols.
    • 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.
    Open source →
  4. 3.1.1 03 Jun 2026
    Release notes
    • Removed debug logging that was accidentally shipped in 3.1.0. No functional changes.
    Open source →
  5. 3.1.0 03 Jun 2026
    Release notes
    • 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 later resume() produced no sound.
    • Fixed: on Android, one-shot effects stole the audio focus and paused the app's own background music. A global AudioContext with AndroidAudioFocus.none is now configured so effects and music coexist.
    Open source →
  6. 3.0.0 18 Feb 2026
    Release notes
    • 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 audioCacheMap getter (use cachedPlayerIds instead)
    • BREAKING: Multiple background audios can now play simultaneously (previously, playing one stopped all others)
    • Removed universal_io dependency (replaced with flutter/foundation.dart for 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 _ambiguate helper
    • Code quality improvements and full API documentation
    Open source →
  7. 2.1.1 14 Nov 2023
    Release notes
    • Error correction
    Open source →
  8. 2.1.0 13 Nov 2023
    Release notes
    • Updated the "audioplayers" version to 5.2.0
    • Error correction
    Open source →
  9. 2.0.0 19 Oct 2023
    Release notes
    • Updated the "audioplayers" version to 5.2.0
    • Error correction
    Open source →
  10. 1.0.1 19 Aug 2022

    Nothing published for this version

  11. 1.0.0 11 Aug 2022
    Release notes
    • Load the audio to be able to use it later
    • Play background audio
    • Play punctual audio
    • Delete cached loaded audio
    • Change sound volume
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive