透過集合功能整理內容
你可以依據偏好儲存及分類內容。
AGDK 程式庫內含 Oboe 音樂庫。Oboe 是開放原始碼的 C++ 程式庫,旨在協助在 Android 平台上建構高效能的音訊應用程式。Oboe 提供單一原生 API,適用於 Android 4.1 (API 級別 16) 以上版本。
透過 Oboe 取得下列優勢:
達到最低延遲。Oboe 可協助應用程式針對指定裝置和 Android 版本組合,盡可能達到最低的延遲時間。
採用最合適的原生資料庫。在搭載 Android API 8.1 (API 等級 27) 以上版本的裝置中,Oboe 使用 AAudio。若是搭載較舊版本的裝置,Oboe 會使用 OpenSL ES。
避免音訊錯誤。Oboe 針對特定裝置或 Android 版本支援的某些已知音訊問題提供解決方法。使用 Oboe 可協助應用程式避免這些問題,而且無需實作或測試自己的解決方案。
後續步驟
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-08-26 (世界標準時間)。
[null,null,["上次更新時間: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)"]]