Skip to content

Commit

Permalink
fix ambiguous AudioSource usage with the "kira" feature
Browse files Browse the repository at this point in the history
there can still be few changes done such as removing the bevy_kira_audio import altogether but this is the bare minimum to fix the error caused when using the "kira" feature
  • Loading branch information
BUGO07 authored Sep 9, 2024
1 parent 5ed60d8 commit a54f365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_lunex/src/logic/states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ struct UiSoundChannel;
#[cfg(feature = "kira")]
#[derive(Component, Debug, Clone, PartialEq, Eq)]
pub struct OnHoverPlaySound {
pub sound: Handle<AudioSource>,
pub sound: Handle<bevy_kira_audio::AudioSource>,
}
#[cfg(feature = "kira")]
impl OnHoverPlaySound {
/// Specify the entity you want to create events for.
pub fn new(sound: Handle<AudioSource>) -> Self {
pub fn new(sound: Handle<bevy_kira_audio::AudioSource>) -> Self {
OnHoverPlaySound {
sound,
}
Expand Down Expand Up @@ -252,4 +252,4 @@ impl Plugin for DefaultStatesPlugin {
.add_systems(Update, hover_enter_system.run_if(on_event::<Pointer<Over>>()))
.add_systems(Update, hover_leave_system.run_if(on_event::<Pointer<Out>>()));
}
}
}

0 comments on commit a54f365

Please sign in to comment.