AudioOutput is actually a normal resource now, not a non-send resource (#7262)

# Objective

- Fixes #7260

## Solution

- #6649 used `init_non_send_resource` for `AudioOutput`, but this is before #6436 was merged.
- Use `init_resource` instead.
This commit is contained in:
harudagondi 2023-01-18 17:20:26 +00:00
parent 46293ce1e4
commit e0b921fbd9

View File

@ -72,7 +72,7 @@ impl AddAudioSource for App {
{
self.add_asset::<T>()
.init_resource::<Audio<T>>()
.init_non_send_resource::<AudioOutput<T>>()
.init_resource::<AudioOutput<T>>()
.add_system_to_stage(CoreStage::PostUpdate, play_queued_audio_system::<T>)
}
}