Hi
I would like to know in advance the length of a music file. Is it possible?
Hi
I would like to know in advance the length of a music file. Is it possible?
Look at the AudioFileGetProperty
function for getting properties of an audio file, such as its length.
AVAudioPlayer *myPlayer;
myVariable = myPlayer.duration; //duration in seconds