Skip to content

Illustration of an attempt to seamlessly loop an mp3 using the expo-av library

Notifications You must be signed in to change notification settings

happyruss/expo-fader-loop

Repository files navigation

expo-fader-loop

Unfortunately, finding a true seamless/gapless loop can only be seen in Android using an in-memory buffer with SoundPool, which is limited to very short sounds. That is illustrated in the happyruss/breathwork_android project.

In this case, I am using a "crossfader" to fade the loop out and in upon itself. This is not perfect (yet), but the isLooping feature provided by the AVPlayers for Android and Apple is worse because of the gap.

This is an Illustration of an attempt to seamlessly loop an mp3 using the expo-av library..

Currently, it works "eh... ok" for iOS, and not really at all for Android. Any help appreciated, this could help anyone wanting to do seamless or gapless loops using react-native/expo.

getting started

Install npm if you don't yet have it (it comes with node.js at https://nodejs.org/en/download/).. then...

npm install --global expo-cli
npm install
expo start

Connect from a phone on same wifi with the expo app for that platform

About

Illustration of an attempt to seamlessly loop an mp3 using the expo-av library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published