使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Oboe 音频库包含在 AGDK 库中。Oboe 是一个开源 C++ 库,旨在帮助您在 Android 上构建高性能音频应用。Oboe 提供了一个适用于 Android 4.1(API 级别 16)及更高版本的原生 API。
使用 Oboe 可获得以下好处:
实现最低的延迟。Oboe 可帮助您的应用针对给定的设备和 Android 版本组合实现尽可能低的音频延迟。
使用最佳的原生库。在搭载 Android API 8.1(API 级别 27)及更高版本的设备上,Oboe 使用 AAudio。对于搭载较低版本的设备,Oboe 使用 OpenSL ES。
避免音频错误。Oboe 包含针对特定设备或 Android 版本中出现的一些已知音频问题的解决方法。使用 Oboe 可帮助您的应用避免这些问题,而不必实现或测试您自己的解决方案。
后续步骤
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-26。
[null,null,["最后更新时间 (UTC):2025-08-26。"],[],[],null,["Oboe audio library\nPart of [Android Game Development Kit](/games/agdk/overview).\n\nThe Oboe audio library is included in the [AGDK Libraries](/games/agdk#game-libraries). Oboe is an\nopen-source C++ library designed to help build high-performance audio apps on\nAndroid. Oboe provides a single native API that works in Android 4.1\n(API level 16) and higher.\n\nUse Oboe to gain the following benefits:\n\n- **Achieve the lowest latency**. Oboe helps your application achieve the\n lowest-possible audio latency for a given device and Android version\n combination.\n\n- **Use the best available native library**. On devices running Android API\n 8.1 (API level 27) and higher, Oboe uses AAudio. For devices running lower\n versions, Oboe uses OpenSL ES.\n\n- **Avoid audio bugs.** Oboe includes workarounds for some known audio\n issues that manifest on specific devices or versions of Android. Using Oboe\n helps your application avoid these issues without having to implement or\n test your own solutions.\n\nNext steps\n\n- [Update your build settings](/games/sdk/oboe/update-build-settings)\n\n- [Use Oboe to play or record audio](https://github.com/google/oboe/blob/master/docs/GettingStarted.md#using-oboe)"]]