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

Audio channels are sometimes reversed #6122

Closed
rparrett opened this issue Sep 28, 2022 · 2 comments · Fixed by RustAudio/rodio#455
Closed

Audio channels are sometimes reversed #6122

rparrett opened this issue Sep 28, 2022 · 2 comments · Fixed by RustAudio/rodio#455
Labels
A-Audio Sounds playback and modification C-Bug An unexpected or incorrect behavior

Comments

@rparrett
Copy link
Contributor

Bevy version

main, 0.8.1

Relevant system information

macOS 12.6
Macbook Pro (M1 Max)

What you did

Modified the audio example to play this sound:

RL.zip

image

cargo run --example audio --release

What went wrong

This audio file consists of some tones alternating from right->left->right->left.

However, when played with bevy, I hear left->right->left->right

This behavior is not consistent. Without --release, the audio plays in the correct channels.

@rparrett rparrett added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled A-Audio Sounds playback and modification and removed S-Needs-Triage This issue needs to be labelled labels Sep 28, 2022
@rparrett
Copy link
Contributor Author

rparrett commented Sep 28, 2022

It seems likely that this is an issue upstream with rodio or cpal.

I found the same behavior in a rodio example (also tested a wav rather than an ogg). RustAudio/rodio#444

But a quick and dirty attempt in cpal didn't produce the same behavior.

@alice-i-cecile
Copy link
Member

Interesting: this was discovered in #6028. Apparently it's a pre-existing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Audio Sounds playback and modification C-Bug An unexpected or incorrect behavior
Projects
Status: Done
2 participants