问题
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:
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).
来源:https://stackoverflow.com/questions/4929825/how-can-i-read-the-properties-of-an-audio-file-in-objective-c-for-ios