使用Android NDK时,原生AAC解码器可用吗?
我正在寻找一种在 Android 上将 AAC 本机解码为 PCM 的方法。解码器源代码位于 https:// android.googlesource.com/platform/external/opencore/+/master/codecs_v2/audio/aac/dec,但我对NDK一点也不熟悉。
1)无法直接使用Android SDK来完成此操作,但是可以通过NDK来完成此操作吗?
2) 我对从 SDK 访问解码器的简单方法特别感兴趣,通过 NDK 建立一个简短的“桥”。这可行吗?
3)这样的解决方案适用于所有 Android 版本(1.5-2.2)吗?
4)我想我可以使用 http://code.google.com/p/aacplayer- android/ 相反,但看起来这个实现相当 CPU 密集型。有人有这方面的经验吗?
I'm looking for a way to decode AAC natively to PCM on Android. The decoder source code is at https://android.googlesource.com/platform/external/opencore/+/master/codecs_v2/audio/aac/dec, but I'm not familiar with NDK at all.
1) There's no way of doing this directly using the Android SDK, but can this be done via the NDK?
2) I would especially be interested in a simple way of accessing the decoder from SDK, with a short "bridge" through the NDK. Is this feasible?
3) Would such a solution work all Android versions (1.5-2.2)?
4) I guess I could use http://code.google.com/p/aacplayer-android/ instead, but it looks like this implementation is fairly CPU intensive. Does anyone have experiences with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不确定这里回答真正老问题的策略是什么,但对我来说效果好的是将 OpenSL 与 NDK 结合使用;它是内置的,事实上 NDK 附带了一个示例“native-audio”来演示您需要什么。
Not sure what the policy is here for answering really old questions but what is working well for me is using OpenSL with the NDK; it comes built in and in fact the NDK comes with an example "native-audio" that demonstrates what you need.
您可能会研究的一件事是 FFMpeg 的东西,它是 GPL 和 TuneIn 无线电在这里发布了他们的模组: http://radiotime.com/mobile/android#/support/open-source
One thing you may look into is the FFMpeg stuff, it is GPL and TuneIn radio posted their mods here: http://radiotime.com/mobile/android#/support/open-source