Sample Projects
Learn from example implementations using flutter_soloud
Overview
The flutter_soloud package includes several example projects demonstrating various features. These examples can be found in the example folder of the plugin.
Getting Started
lib/main.dart
- Basic setup and usage examplelib/output_device/output_device.dart
- How to list and select output devices
Audio Visualization
lib/audio_data/audio_data.dart
- Visualize audio usingAudioData
lib/wave_data/wave_data.dart
- Read and display audio samples from files
Audio Generation
lib/waveform/waveform.dart
- Generate and control waveforms in real-timelib/metronome/metronome.dart
- Create a precise metronome
Streaming Examples
lib/buffer_stream/generate.dart
- Generate PCM audio in anIsolate
lib/buffer_stream/websocket.dart
- Stream PCM and Opus audio via WebSocket
Audio Effects
Example | Description |
---|---|
lib/filters/compressor.dart | Dynamic range compression |
lib/filters/limiter.dart | Peak limiting and volume control |
lib/filters/pitchshift.dart | Real-time pitch shifting |
Running the Examples
- Clone the repository:
git clone https://github.com/alnitak/flutter_soloud.git
- Navigate to the example directory:
cd flutter_soloud/example
- Install dependencies:
flutter pub get
- Run a specific example:
flutter run -t lib/main.dart
# Or any other example file
flutter run -t lib/waveform/waveform.dart