tags:

views:

42

answers:

3

Hi

I would like to know in advance the length of a music file. Is it possible?

A: 

Look at the AudioFileGetProperty function for getting properties of an audio file, such as its length.

jer
A: 

Check out AVAudioPlayer class of the AVfoundation framework.

Powertieke
A: 

AVAudioPlayer *myPlayer;

myVariable = myPlayer.duration; //duration in seconds

okayasu
You're welcome :)
Powertieke
thnx Powertieke :D
okayasu