Fix update_volume system declaration location and make ambiguous
This commit is contained in:
parent
405fa13dc6
commit
160657b7a5
@ -96,7 +96,14 @@ impl Plugin for AudioPlugin {
|
||||
)
|
||||
.add_systems(
|
||||
PostUpdate,
|
||||
(update_emitter_positions, update_listener_positions).in_set(AudioPlaybackSystems),
|
||||
(
|
||||
update_emitter_positions,
|
||||
update_listener_positions,
|
||||
update_playing_audio_volume
|
||||
.run_if(resource_changed::<GlobalVolume>)
|
||||
.ambiguous_with_all(),
|
||||
)
|
||||
.in_set(AudioPlaybackSystems),
|
||||
)
|
||||
.init_resource::<AudioOutput>();
|
||||
|
||||
@ -118,11 +125,7 @@ impl AddAudioSource for App {
|
||||
{
|
||||
self.init_asset::<T>().add_systems(
|
||||
PostUpdate,
|
||||
(
|
||||
update_playing_audio_volume.run_if(resource_changed::<GlobalVolume>),
|
||||
play_queued_audio_system::<T>,
|
||||
cleanup_finished_audio::<T>,
|
||||
)
|
||||
(play_queued_audio_system::<T>, cleanup_finished_audio::<T>)
|
||||
.in_set(AudioPlaybackSystems),
|
||||
);
|
||||
self
|
||||
|
Loading…
Reference in New Issue
Block a user