Skip to content

Commit

Permalink
AudioOutput is actually a normal resource now, not a non-send resource (
Browse files Browse the repository at this point in the history
bevyengine#7262)

# Objective

- Fixes bevyengine#7260

## Solution

- bevyengine#6649 used `init_non_send_resource` for `AudioOutput`, but this is before bevyengine#6436 was merged.
- Use `init_resource` instead.
  • Loading branch information
harudagondi authored and ItsDoot committed Feb 1, 2023
1 parent ba6eac8 commit 2134c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_audio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>)
}
}

0 comments on commit 2134c52

Please sign in to comment.