Ryan Routon
FarSight Employee
- Feb 24, 2012
- 1,394
- 0
- Thread starter
- #41
Yeah, since we are using a custom made in house audio mixer that mixes everything into a single channel that is then sent as a stream to the java side to be submitted in chunks to the OS, it appears to be a bit laggy, more so on some devices than others (worst I have seen is the original Kindle). The flippers don't have this problem because I am using a sound pool to play an .ogg file directly. Due to the game framework it would be impossible to do that since all sounds are included in a big byte chunk for each table. Flippers are universal so those are fine to sound pool. Every time I make the block size smaller to pass to the Stream it breaks some devices and you hear blips in between. Bugs me to no end but not sure what to do.
This is status quo for all tables on Android. Sound effects have latency no matter what table you play. @Ryan Routon has tried to tweak the sound server but no matter what he tries, he can never remove the latency. Much to my disappointment.
You'll also notice that when the music track loops there is a gap in playback. Get a high score on No Good Gophers and you'll see this issue become very apparent, and you won't be able to unhear it.