suse
suse

Reputation: 10563

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

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?

Upvotes: 1

Views: 2021

Answers (1)

一二三
一二三

Reputation: 21249

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).

Upvotes: 1

Related Questions