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 可協助應用程式避免這些問題,而且無需實作或測試自己的解決方案。
後續步驟
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-05-09 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]