Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine length of audio file associated with AVAudioPlayer

Does anyone know how to get attributes from a file associated with an instance of AVAudioPlayer..specifically I am looking how to determine the length of a WAV file.

like image 486
huevos de oro Avatar asked Nov 05 '09 20:11

huevos de oro


1 Answers

If you want the length in seconds, audioPlayer.duration should do it.

like image 171
Art Gillespie Avatar answered Sep 27 '22 01:09

Art Gillespie