Reputation: 10563
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
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