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

Sound is played with delay, without no obvious reason #324

Closed
64kramsystem opened this issue Jun 7, 2022 · 1 comment
Closed

Sound is played with delay, without no obvious reason #324

64kramsystem opened this issue Jun 7, 2022 · 1 comment

Comments

@64kramsystem
Copy link

In a project of mine, a sound is played with delay, without any obvious reason (the sound file itself has no silence samples at the beginning).

This happens all the time. I'm on Linux, with AMD discrete graphics card and open source drivers.

The project is a very direct port of another, where this problem doesn't happen (so, it's not something related, say, to problems with the audio subsystem in itself).

In order to reproduce:

git clone [email protected]:64kramsystem/rust-game-ports
cd rust-game-ports/soccer-fyrox
cargo run --release

now tap up/down arrows; the sound played should sound immediately on keypress, but it has a delay instead.

@mrDIMAS
Copy link
Member

mrDIMAS commented Oct 7, 2023

This should be fixed now, I reduced internal buffer size of fyrox-sound by 2x so the latency should be 2x lower.

@mrDIMAS mrDIMAS closed this as completed Oct 7, 2023
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