# pubspec.yaml
dependencies:
fmod_flutter:
git:
url: https://github.com/SuperWes/fmod_flutter.gitflutter pub get- Sign up at fmod.com/download (free)
- Download FMOD Studio API for your platforms
- Place in
engines/directory in your project root
Windows note: The Windows SDK is an
.exeinstaller. Run it first, then copy the installed folder toengines/windows/fmodstudioapi*win/. See the full README for details.
mkdir engines
# Add downloaded files to engines/
dart run fmod_flutter:setup_fmod# pubspec.yaml
flutter:
assets:
- assets/audio/Master.bank
- assets/audio/Master.strings.bankimport 'package:fmod_flutter/fmod_flutter.dart';
final fmod = FmodService();
// Initialize
await fmod.initialize();
await fmod.loadBanks(['assets/audio/Master.bank']);
// Play
await fmod.playEvent('event:/Music/MainTheme');Add this to .gitignore (for public/open-source projects):
# FMOD SDK files (proprietary - can't redistribute publicly)
engines/
android/app/src/main/jniLibs/libfmod*.so
android/app/libs/fmod/
ios/FMOD/
macos/FMOD/
windows/FMOD/
web/fmod/For private projects, you can commit these files so your team doesn't need to run setup.
Full guide: See README.md