Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for spatial audio #26

Merged
merged 31 commits into from
Sep 22, 2023
Merged

Add support for spatial audio #26

merged 31 commits into from
Sep 22, 2023

Conversation

GitGhillie
Copy link
Collaborator

@GitGhillie GitGhillie commented Sep 22, 2023

See the added example spatial.rs.

Adds components to handle FMOD events in a Bevy way, by implementing AudioSinkPlayback and storing a reference to the FMOD event.

Closes #1
Closes #21
Closes #16

@@ -9,12 +9,18 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1.0.75"
bevy = { version = "0.11.2", default-features = false }
bevy = { version = "0.11.2", default-features = false, features = ["bevy_audio"] }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a test crate that depends on this crate to run unit tests and ensure the crate functions correctly as a library. With just examples, I assume this mistake wouldn't have been obvious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't done much unit testing before (let alone with Rust) but that sounds reasonable

Cargo.toml Outdated
bevy_mod_sysfail = "3.0.0"
libfmod = "2.206.2"
once_cell = "1.18.0"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see this being imported anywhere. Where is this used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol, no idea where this came from. It's removed now

Comment on lines +15 to +16
match query.get_single() {
Ok((velocity, transform)) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@Salzian Salzian assigned Salzian and GitGhillie and unassigned Salzian Sep 22, 2023
@Salzian Salzian added the enhancement New feature or request label Sep 22, 2023
@GitGhillie GitGhillie merged commit 9a4d234 into main Sep 22, 2023
@GitGhillie GitGhillie deleted the spatial branch September 22, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants