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

Fyrox-Sound glitchy sounds on Android #613

Closed
maciekglowka opened this issue Mar 3, 2024 · 2 comments
Closed

Fyrox-Sound glitchy sounds on Android #613

maciekglowka opened this issue Mar 3, 2024 · 2 comments

Comments

@maciekglowka
Copy link

Hi,

I've been using the fyrox-sound crate for my game (outside of the Fyrox engine context), which is overall a great experience, except for a small issue on the Android target. The sound clips often produce unwanted pops and glitches. I only play short sfx clips - no background music etc.
I target a couple of platforms (also Win, Linux, WASM) and none of them faces this. It might be the problem somewhere further in the dependency tree, as I see that the sound crate is build on top of tinyaudio -> aaudio ?
I've tried running the sound engine on a separate rust thread, which might have helped a bit (although it is hard to measure precisely by ear). Maybe this problem could be resolved by setting a larger audio buffer - but I do not seem to see such a setting in the API?

I am currently depending on the 0.34 version.

@mrDIMAS
Copy link
Member

mrDIMAS commented Mar 4, 2024

Hi! I made some fixes in tinyaudio (mrDIMAS/tinyaudio@c6f409a) and it should now work fine. I don't have any audio issues on my Redmi Note 8, however when I'm using an emulator there's some occasional clicks from time to time which might be related to slowness of the emulator (these clicks disappear after a short time, but appear again when I'm opening a web browser on the emulator for example). Could you please check if it works for you? I think simple cargo update should be enough, since I released a patch for tinyaudio (0.1.3).

@maciekglowka
Copy link
Author

Hi!
Many. many thanks. I really appreciate the instant patch. It worked like a charm :D No issues anymore on my low-tiered Samsung M21 a well.

So I think I can push the Play Store update today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants