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(
|
.add_systems(
|
||||||
PostUpdate,
|
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>();
|
.init_resource::<AudioOutput>();
|
||||||
|
|
||||||
@ -118,11 +125,7 @@ impl AddAudioSource for App {
|
|||||||
{
|
{
|
||||||
self.init_asset::<T>().add_systems(
|
self.init_asset::<T>().add_systems(
|
||||||
PostUpdate,
|
PostUpdate,
|
||||||
(
|
(play_queued_audio_system::<T>, cleanup_finished_audio::<T>)
|
||||||
update_playing_audio_volume.run_if(resource_changed::<GlobalVolume>),
|
|
||||||
play_queued_audio_system::<T>,
|
|
||||||
cleanup_finished_audio::<T>,
|
|
||||||
)
|
|
||||||
.in_set(AudioPlaybackSystems),
|
.in_set(AudioPlaybackSystems),
|
||||||
);
|
);
|
||||||
self
|
self
|
||||||
|
Loading…
Reference in New Issue
Block a user