v0.3.0
We're excited to unveil version 0.3.0 of bevy_fmod, our biggest release so far. This update not only brings several new features but also marks a milestone as the first version that includes all the crucial functionalities for integrating FMOD into your Bevy projects. Now is the perfect time to start enriching your game's audio experience.
Feature highlight
Adaptive audio using parameter control
Tailor your audio dynamics like never before with the parameter control feature, allowing you to customize the sound settings to suit different gameplay situations.
fn set_rain(audio_sources: Query<&AudioSource, With<ForestSfxPlayer>>, input: Res<Input<KeyCode>>) {
if input.just_pressed(KeyCode::Up) {
for audio_source in audio_sources.iter() {
audio_source
.event_instance
.set_parameter_by_name("Rain", 1.0, false)
.unwrap();
}
}
}
Spatial Audio Support
Step into a more immersive audio landscape with our new spatial audio support. This feature elevates your 3D sound experience within the game world.
fn spawn_sound(
mut commands: Commands,
studio: Res<FmodStudio>,
) {
let event_description = studio.0.get_event("event:/Music/Radio Station").unwrap();
commands.spawn((
AudioSource::new(event_description),
Velocity::default(),
));
}
fn setup_scene(mut commands: Commands) {
commands
.spawn(Camera3dBundle::default())
.insert((AudioListener::default(), Velocity::default()))
}
Automatic velocity brings Doppler effects
Bring a new layer of realism to your game with the introduction of velocity calculations and Doppler effects.
Live Update Feature
Take control in real-time with FMOD's live update feature, allowing you to make adjustments to your audio during gameplay.
Check the full changelist for more details.
What's Changed
- Rename example, update Rust edition by @GitGhillie in #17
- Update libfmod to thread-safe variant by @Salzian in #23
- Refactor startup sequence by @Salzian in #24
- Init FMOD with right-handed coordinate system by @Salzian in #25
- Add support for spatial audio by @GitGhillie in #26
- Setup dependabot for automatic version updates by @Salzian in #31
- Use FMOD Studio Examples by @GitGhillie in #33
- Fix dependabot config: labels array by @Salzian in #34
- Reduce clutter in spatial example by @GitGhillie in #35
- Fix velocity & doppler effect by @Salzian in #39
- Live update by @Salzian in #38
- Introduce STYLEGUIDE.md by @Salzian in #41
- Add support for FMOD local parameters by @GitGhillie in #32
New Contributors
- @GitGhillie made their first contribution in #17
Full Changelog: v0.2.0...v0.3.0