Our team is switching to react-native-track-player, which seems to be the best option for native playback, but we encountered a bug that is not fixable with JS. We would greatly appreciate any tips on whether this is a known issue and if there's a way to fix it. If it's not on the schedule, are there any suggestions on where to look to fix it ourselves?
Describe the bug
A noticeable audio gap during track looping when using RepeatMode.Track. The gap occurs when the track restarts.
To Reproduce
- Setup TrackPlayer with a single audio track
- Set RepeatMode.Track
- Play audio and let it loop
- You'll hear a gap when the loop resets
Code example in RN:
await TrackPlayer.add(track);
await TrackPlayer.setRepeatMode(RepeatMode.Track);
await TrackPlayer.play();
Expected behavior
Seamless gapless playback when the audio track loops.
Smartphone:
- Device: iPhone 14, Simulator iPhone SE 3rd generation
- OS: iOS 17.5, iOS 18.0
- Version: SwiftAudioEx 1.1.0
Additional context
Using:
- react-native-track-player: 4.1.1
- SwiftAudioEx: 1.1.0
Our team is switching to react-native-track-player, which seems to be the best option for native playback, but we encountered a bug that is not fixable with JS. We would greatly appreciate any tips on whether this is a known issue and if there's a way to fix it. If it's not on the schedule, are there any suggestions on where to look to fix it ourselves?
Describe the bug
A noticeable audio gap during track looping when using RepeatMode.Track. The gap occurs when the track restarts.
To Reproduce
Code example in RN:
Expected behavior
Seamless gapless playback when the audio track loops.
Smartphone:
Additional context
Using: