capacitor-community / capacitor-community/native-audio
Cannot play more than 40 preloaded sounds on Android
- Dominant language
- Java
- Stars
- 154
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
On Android (haven't tried on iOS), if you preload more than 40 sounds and play them, they will not be played.
**To Reproduce**
Steps to reproduce the behavior:
1. Preload more than 40 sounds (a piano for example)
2. Play 40 different notes or sounds
3. Play any new sound or note different than the previous 40
4. Sound won't play. No error callback thrown either
**Expected behavior**
If a sound cannot be played for whatever reason, an error should be thrown. Also, the documentation should say there's a limit of 40 sounds.
**Desktop (please complete the following information):**
- OS: Android
- Browser Chrome
**Smartphone (please complete the following information):**
- Device: Fairphone 5
- OS: Android 14
Contributor guide
Research direction
No source file or test is named. Start by reproducing the issue on Android 14 with more than 40 preloaded sounds, then trace the preload and playback entry points and the missing error callback; done means additional sounds either play or report an error, with the 40-sound limit documented if it remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100