Aus öffentlichen Paketdaten erstellte Orientierung.
flutter_soloud ist ein Low-Level-Audio-Plugin für Flutter, das auf der SoLoud-C++-Audio-Engine basiert. Es bietet effiziente, Echtzeit-Audio-Wiedergabe, die ideal für Spiele und immersive Anwendungen ist. Das Paket unterstützt mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux und ermöglicht eine konsistente Audio-Leistung über Geräte hinweg. Für Entwickler, die feinabgestimmte Kontrolle über den Sound benötigen, bietet es Funktionen wie 3D-Spatial-Audio, Streaming und Sample-Manipulation. Seine geringe Auslastung macht es für leistungsintensive Anwendungen geeignet, bei denen minimale Latenz und hohe Reaktionsfähigkeit entscheidend sind.
Anwendungsfälle
Spiel-Audio-Implementierung
Immersive VR/AR-Erlebnisse
Echtzeit-Soundeffekte
Audiogetriebene interaktive Apps
niedrige Latenz-Audioprozessierung
Hauptmerkmale
Plattformübergreifender Audio-Unterstützung
3D-Spatial-Audio
Streaming-Audio-Wiedergabe
Audio-Steuerung auf Stichproben-Ebene
Niedrige Latenz
Geeignet für
Spieleentwickler
Interaktive App-Ersteller
Tonträgeringenieure
Leistungsorientierte Anwendungen
C++-basierte Audio-Integration
Hinweise
Kenntnisse über Low-Level-Audio-Konzepte erforderlich
Begrenzte hochstufige Abstraktionen
Nicht ideal für einfache Musikwiedergabe
Am besten geeignet für fortgeschrittene Anwendungsfälle
plattformspezifisches Audioverhalten kann variieren
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
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
⏱️ Sample-accurate scheduled playback: playClocked for sub-millisecond spaced playback regardless of buffer size, and playScheduled for score/manifest-style scheduling of whole batches of sounds on the engine's own clock (with optional scheduled stop/fade). Perfect for metronomes, music sequencers, rhythm games and precisely timed audio cues
🎮 3D positional audio with Doppler effect
🔄 Gapless looping with half-open [start, end) loop regions
🔄 Stream audio with auto-pause for buffering, support for PCM, MP3, WAV, Ogg with Opus, Vorbis and FLAC containers
📥 Pull-buffer streaming: the engine requests encoded data on demand (MP3, WAV, FLAC, Ogg Opus/Vorbis/FLAC), with seek support and callbacks for buffering, metadata, duration and data requests — ideal for network streams and custom data sources
🚌 Mixing buses: group voices (music, SFX, UI...) into sub-mixes with their own volume, filters and visualization
📊 Get audio wave and/or FFT audio data in real-time (useful for visualization)
⚙️ 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
🔴 Capture the master mixer output as a stream for recording, processing, or streaming (with different PCM formats and Opus, Vorbis, FLAC, WAV encoded stream formats)
⏱️ 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.)
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.
If you are working with MIDI or SoundFont files (SF2/SF3/SFZ), check out soundfont_kit—a companion package that is very helpful for musicians and game developers looking to synthesize instrument audio using SoundFonts with flutter_soloud.
The native code is built with Dart build hooks: no CMake, CocoaPods script phases, or SPM configuration is needed — it works the same whether your app uses CocoaPods or Swift Package Manager.
By default, Xiph audio codecs (Ogg, Vorbis, Opus, FLAC) are linked and bundled from tested prebuilt libraries (xiph/prebuild/<platform>/), ensuring that packaged apps (Android AAB/APK, iOS IPA, macOS APP, Windows EXE) work out of the box with zero external build dependencies. You can also configure:
System libraries: Set <platform>_use_system_libs: true (e.g. linux_use_system_libs: true) to link system packages.
Force source build: Set <platform>_force_build_libs: true to clone and compile from source via CMake.
Without Xiph mode: Set no_xiph_libs: true to exclude Xiph codecs and shrink binary size.
flutter_soloud includes bundled Agent Skills (SKILL.md instruction files) to help AI coding agents (Claude, Cursor, Gemini, GitHub Copilot, Cline, Codex, OpenCode, etc.) generate correct, high-performance code for all features of this audio engine.
Install or update the skills in your project by running:
dart run flutter_soloud:skills
To check whether installed skills are up to date without modifying any files: