Bluetooth Audio Delay #1036
Unanswered
frankcalise
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a Simon-style memory game on react-native-audio-api@0.12.0 (Expo SDK 55, RN 0.83), targeting iOS and Android. Testing primarily on Pixel devices (Android 14/16).
Audio architecture: per-note OscillatorNode + GainNode, with 4 game frequencies (220/277/330/415 Hz) across 4 waveform sos (sine, square, triangle, sawtooth).
I've encountered some symptoms on Bluetooth (AAC codec, various earbuds)
On speakers: all four symptoms are either gone or barely perceptible. The issue is specific to BT output.
Things I've already tried (most following the piano-keyboard guide's patterns):
Is the recommended path for short game-effect sounds to pre-render envelopes into samples and play via
AudioBufferSourceNode(as in the piano-keyboard guide), sidestepping the scheduler entirely? Or is there an OscillatorNode-based pattern that I haven't tried that should be click-free at this envelope complexity?I'm assuming some of the BT lag is just a physics thing (A2DP pipeline depth)? Or am I not thinking about something appropriately? Thanks for the great library, happy to file reproductions for any of this if useful.
Beta Was this translation helpful? Give feedback.
All reactions