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

ぐ巨炮叔叔 提交于 2019-12-23 02:52:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!