How to determine the length of an audio file associated with AVAudioPlayer

Does anyone know how to get attributes from a file associated with an AVAudioPlayer instance. In particular, I look at how to determine the length of a WAV file.

+5
source share
1 answer

If you need a length in seconds, you audioPlayer.durationshould do it.

+14
source

All Articles