Closed Husseinhj closed 2 years ago
This isn't the best solution since it forces everyone to unsubscribe including other layers of the app outside of this library. I'll create an issue for the caching problem and put the denoising lower down
Fixed in version 7.0.1
: https://github.com/tanhakabir/SwiftAudioPlayer/pull/141
After a user has called clear on AudioClockDirector, the cache will be reset
Problem:
In the case of playing multiple audio files and choosing another audio in the middle of the first file, the
SAPlayer.Updates.ElapsedTime.subscribe
will be called half played files elapsed by the number of items in the cache. By callingAudioClockDirector.shared.clear()
inside thehandleClear()
method of theSAPlayerPresenter
class. If theSAPlayer.shared.clear()
method is called, the cache will be cleared.