birdofpreyru/react-native-audio

[iOS] SamplePlayer: Stop or pause AVAudioEngine when it is not in use

Opened this issue · 0 comments

Currently, SamplePlayer on iOS never stops/pauses the underlying AVAudioEngine. It is not a big deal for me now, but it is recommended to stop it when it is not in use, to save on power consumption. So, it should be configured to stop when not in use, probably exposing to TypeScript an API to stop it when not needed.