Skip to content

Audio is silenced when output is changed #443

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

Open
TaylorDale opened this issue May 13, 2025 · 2 comments
Open

Audio is silenced when output is changed #443

TaylorDale opened this issue May 13, 2025 · 2 comments

Comments

@TaylorDale
Copy link

Description

For both iOS and Android, the AudioContext will only ever play on the first device output that it was created in (Speakerphone, bluetooth device).

When a device is connected (or, start with the device and then disconnect), the audio will be silent. (From what I can see, all callbacks still register as if the audio was actually playing - but it's silent). If you switch back to the first output at that point, it's still also broken.

Checked both iOS + Android, ensured device volume was up etc.

Steps to reproduce

  1. Launch any example audio demo that creates an AudioContext (with device set to play out speakers)
  2. Play the audio to confirm working with speaker
  3. Switch the audio output (connect bluetooth device, or set the output in control panel) to something else
  4. Try to play the sound, no sound.

Snack or a link to a repository

https://github.com/software-mansion/react-native-audio-api/

React Native Audio API version

0.5.7

React Native version

0.79

Platforms

Android, iOS

JavaScript runtime

V8

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Release app & dev bundle

Device

Real device

Device model

iPhone 15, Android a23, moer

Acknowledgements

Yes

@RunRanger
Copy link

Experienced the same problem with my project

@maciejmakowski2003
Copy link
Collaborator

We are working on it!

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

3 participants