Motivation
This PR fixes the audio layering in the React-Native App that currently occurs relatively consistently for audio playback longer than 4 sentences. Simplifies a lot of the state complexity that existed previously.
Changes
Refactors the sound and audioQueue states with useRef() for persistent, mutable values that are tracked across components accurately. Audio playback logic is changed accordingly.
Motivation This PR fixes the audio layering in the React-Native App that currently occurs relatively consistently for audio playback longer than 4 sentences. Simplifies a lot of the state complexity that existed previously.
Changes Refactors the sound and audioQueue states with useRef() for persistent, mutable values that are tracked across components accurately. Audio playback logic is changed accordingly.