iPhone 库中的 Mp3 转换为 PCM?

发布于 2024-12-18 06:47:32 字数 174 浏览 3 评论 0原文

我需要从 iPhone/iPod 库中读取一些音频文件,然后将其传递给函数来进行一些检测。 我需要从 MP3 解码为 PCM,以便在函数中传递一些数据块。我的问题是:最好的方法是什么?我知道可以通过使用 AVAsset 读取和写入不同的文件或使用 ExtAudioFileconvert (如苹果示例中所示)来完成。什么是最有效率的?

I need to read some audio file from the iPhone/iPod library and then pass it to a function to do some detection.
I need to decode from MP3 to PCM in order to pass at the function some chunks of data. My question is: what's the best ay to do this? I know that it can be done by using AVAsset by reading and writing different file or using ExtAudioFileconvert (as seen in apple example). What's the most efficient?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文