flutter_soloud 3.4.8 copy "flutter_soloud: ^3.4.8" to clipboard
flutter_soloud: ^3.4.8 copied to clipboard

A low-level audio plugin for Flutter, mainly meant for games and immersive apps. Based on the SoLoud (C++) audio engine.

A low-level audio plugin for Flutter.

Pub Version style: very good analysis

Linux Windows Android MacOS iOS Web
Support ๐Ÿ’™ ๐Ÿ’™ ๐Ÿ’™ ๐Ÿ’™ ๐Ÿ’™ ๐Ÿ’™
Minimum Version Any Any 21 10.15 13.0 Any

Overview #

A high-performance audio plugin designed primarily for games and immersive applications, providing low latency and advanced features.

Key Features #

  • โšก Low latency, high performance audio
  • ๐ŸŽฎ 3D positional audio with Doppler effect
  • ๐Ÿ”„ Gapless looping
  • ๐Ÿ”„ Stream audio with auto-pause for buffering, support for PCM, MP3, Ogg with Opus, Vorbis and FLAC containers
  • ๐Ÿ“Š Get audio wave and/or FFT audio data in real-time (useful for visualization)
  • ๐ŸŽ›๏ธ Rich effects system (reverb, echo, limiter, bassboost, etc.)
  • โš™๏ธ Faders for attributes (e.g. fade out for 2 seconds, then stop)
  • ๐ŸŽš๏ธ Oscillators for attributes
  • ๐ŸŒŠ Waveform generation and visualization
  • ๐Ÿ”Š Multiple voices, playing different or even the same sound multiple times
  • ๐ŸŽต Support for MP3, WAV, OGG, and FLAC
  • โฑ๏ธ Read audio data samples from a file with a given time range
  • ๐ŸŒŠ Generate waveforms in real-time with various types (sine, square, saw, triangle, etc.)

Getting Started #

If you are looking for a package to visualize audio using shaders or CustomPainter, please check out audio_flux. It uses this plugin for output and flutter_recorder for input.

Documentation #

Simple Example #

void example() async {
  final soloud = SoLoud.instance;
  await soloud.init();

  final source = await soloud.loadAsset('assets/sound.mp3');
  final handle = await soloud.play(source);
  
  // Later...
  await soloud.stop(handle);
  await soloud.disposeSource(source);  
}

License #

The Dart plugin is covered by the MIT license. For information about the underlying SoLoud engine license, see the documentation.

526
likes
160
points
41.8k
downloads
screenshot

Publisher

verified publishermarcobavagnoli.com

Weekly Downloads

A low-level audio plugin for Flutter, mainly meant for games and immersive apps. Based on the SoLoud (C++) audio engine.

Repository (GitHub)
View/report issues

Topics

#audio #player #games

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

ffi, flutter, http, logging, meta, path, path_provider, plugin_platform_interface, web

More

Packages that depend on flutter_soloud

Packages that implement flutter_soloud