How can I read the properties of an audio file in Objective-C for iOS?

2k views Asked by At

How can I get the properties of an audio file (like the number of channels, sample rate and bit rate) programmatically in Objective-C for iOS?

1

There are 1 answers

1
一二三 On BEST ANSWER

To get the properties for any audio filetype that is supported on iOS, load the audio data into an AVAudioPlayer and examine its properties (in particular, the settings dictionary).