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
#7262)

# Objective

- Fixes #7260

## Solution

- #6649 used `init_non_send_resource` for `AudioOutput`, but this is before #6436 was merged.
- Use `init_resource` instead.
  • Loading branch information
harudagondi committed Jan 18, 2023
1 parent 46293ce commit e0b921f
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 e0b921f

Please sign in to comment.