Open fielding34 opened 6 years ago
dispose
ends up resetting the iOS player when called. Ideally, you only dispose it when you are done playing audio files and want to destroy the instance. If you call dispose
you should recreate a new instance of the TNSPlayer
, which creates a new native audio player as well.
I am using below code to try playing multiple audios. When
playAudio()
is invoked for the fourth audio file,initFromFile()
will fail with exception pasted as below. It seems too many files are open so iOS refuse to open more. I have already invoked thedispose()
, but it doesn't work.I wonder if there is another way to play multiple audios or
dispose()
should close file.