Add first class support for spatial audio in bevy #22
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
usability
quality-of-life changes
Milestone
Compared to kira and rodio, oddio already has support for spatial audio. We should expose it in an ergonomic api.
Solution
The MVP solution should look something like this.
Emitter
component, that emits sound from its location. Its struct should be based onoddio::SpatialOptions
, and its methods should be similar tobevy_oddio::Audio
.Listener
component. This is where theoddio::SpatialScene
should be, but it should not be where theplay
method is. This, should, however, have theset_listener_rotation
method.There should be several examples like:
Five Nights at Freddy's
style camera system, where each location has its own emitters, but those emitters become softer the farther the camera from the source. (2D or 3D)Note:
The text was updated successfully, but these errors were encountered: