aaudio 1

Android has long struggled with high latency for audio. Due to this, professional audio apps were never possible on the platform. Google has been trying to solve the issue since Lollipop and has made great strides on that front.

However, the audio latency still varies greatly from device to device that continues to make it difficult for developers to create professional audio apps for the platform. To tackle this issue once and for all, Google is introducing AAudio API in Android O.

This new API offers high-performance low-latency audio for apps that specifically require it. Apps that will be making use of this API will write and receive data via streams for optimal performance. Developers will be able to take advantage of this API to create professional grade audio apps for Android. The introduction of this API will also ensure wider compatibility with various Android devices.

Google make sit very clear in its documentation that the AAudio API is minimal in nature and does not offer the following functions:

  • Automated routing between devices
  • File I/O
  • Decoding of compressed audio

And here’s how the company explains AAudio API works:

AAudio moves audio data between your app and the audio inputs and outputs on the device that’s running your app. Your app passes data in and out by reading from and writing to audio streams, represented by the structure AAudioStream. The read/write calls can be blocking or non-blocking.

If you are an Android developer, you can read more about AAudio API over here.

翻译

Android长期以来一直在努力为音频提供高延迟。因此,专业的音频应用程序在平台上是绝对不可能的。谷歌一直在努力解决这个问题,因为棒棒糖,并在这方面取得了长足的进步。

然而,音频延迟在设备之间的差异很大,继续使开发人员难以为该平台创建专业的音频应用。为了解决这个问题,Google正在Android OIO中引入AAudio API。

这个新的API为具体要求的应用程序提供了高性能的低延迟音频。将使用此API的应用程序将通过流来编写和接收数据,以获得最佳性能。开发人员将能够利用此API来为Android创建专业级的音频应用程序。该API的引入还将确保与各种Android设备的更宽兼容性。

Google在其文档中非常清楚,AAudio API性质极小,不提供以下功能:

  • 设备之间的自动路由
  • 文件I / O
  • 压缩音频解码

以下是该公司如何解释AAudio API的作品:

AAudio在您的应用程序和运行应用程序的设备上的音频输入和输出之间移动音频数据。您的应用程序通过读取和写入音频流传输数据,由结构AAudioStream表示。读/写调用可以是阻塞或非阻塞。

如果您是Android开发人员,您可以在这里阅读有关AAudio API的更多信息。

时间: 2024-08-16 10:33:54

aaudio 1的相关文章

aaudio

OpenSL ES 从Android 2.3(Gingerbread)开始的设备支持OpenSL.然而,从Android 4.2(或4.3?)开始,用于OpenSL(高性能音频)的快速混合器可用,并且并不是所有设备本地支持的. 这是什么意思?基于我的观察,当不使用快速混合器时,Java AudioTrack 比OpenSL 更快(具有较低的延迟). 当使用快速混频器时,音频延迟实际上是好的和低的.为了实现这一点,您的设备必须支持快速混音器,并且配置参数应该匹配. 另一个需要考虑的问题是GearV

Android平台中关于音频播放

Android平台中关于音频播放有以下三种方式: 1.SoundPool ---- 适合短促且对反应速度比较高的情况(游戏音效或按键声等) 2.MediaPlayer ---- 适合比较长且时间要求不高的情况 3.AudioTrack ---- 播放解码后的PCM码流 方法一:SoundPool 1)SoundPool简介 SoundPool类是Android用于管理和播放应用程序的音频资源的类.一个SoundPool对象可以看作是一个可以从APK中导入资源或者从文件系统中载入文件的样本集合.它

Android 9.0更新

北京时间2018年8月7日上午,Google 发布了 Android 9.0 操作系统.并宣布系统版本 Android P 被正式命名为代号"Pie". Android 9.0 利用人工智能技术,让手机变得更智能.更快,并且还可以随着用户的使用习惯进行调整. 利用 Wi-Fi RTT 进行室内定位 Android 9 添加了对 IEEE 802.11mc Wi-Fi 协议(也称为 Wi-Fi Round-Trip-Time (RTT))的平台支持,从而让您的应用可以利用室内定位功能.