Open nazmulkp opened 8 years ago
Possible problem with MP3 file
The problem is most likely connected with the MP3 file you're using. The code works for other sounds, this suggests that the MP3 file might be corrupted and AVAudioPlayer fails with decoding it. You can try re-encode this file and see if the problem persists. Or, even better, converting it to WAV.
http://stackoverflow.com/questions/32768352/avaudioplayer-problems-with-swift-2-0
application initial after playing sound .when i try to stop sound by press sound button. sound stop and application working perfectly but this error throwing