低延迟音频API为Android? [英] Low latency audio api for Android?

查看:156
本文介绍了低延迟音频API为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有哪些选择在Android设备上播放同步音频用最少的延迟?我要去得到什么像样的出罐头的SDK,或者是太奢侈了?文档声称的Soundpool类是能够同时播放多个声音有比较不错的表现,但在仿真器和物理设备上运行一些测试后,它似乎pretty的薄弱。是否有可能一招呢,还是我去一个低得多的水平API来这种事情?我用一个声音池加载多个样品试了,我尝试了每一个管理单个样品中的多种声音池。我是preloading一切,所以,当我试图回放我有没有额外的code正在执行以外的调用SoundPool.play()。

What are my options for playing simultaneous audio on an Android device with the least amount of latency? Am I going to get anything half decent out of the canned SDK, or is that asking too much? The documentation claims that the SoundPool class is capable of playing multiple sounds simultaneously with relatively good performance, but after running some tests in the emulator and on a physical device it seems pretty weak. Is there maybe a trick to it, or do I have to go to a much lower level api for this kind of thing? I've tried using a single sound pool with multiple samples loaded, and I've tried multiple sound pools each managing a single sample. I'm preloading everything, so that when I attempt to play back I have no additional code being executed other than the call to SoundPool.play().

推荐答案

许多人有兴趣在Andriod的低延迟音频。下面是我下面关于这个专题的主题:

A number of people are interested in low-latency audio on Andriod. Here are the threads I'm following on the topic:

  • 系统涵盖音频相关的话题从今年的I / O发布会。
  • 在一个Android 问题有关的低延迟音频支持NDK的。
  • A wave covering audio related topics from this year's I/O conference.
  • An Android issue about support for low latency audio in the NDK.

这<一href="http://createdigitalmusic.com/2010/05/20/android-2-2-badly-needed-improvements-to-audio-touch-more-whats-missing/">post表明,Android设备具有ALSA驱动(能够低延迟音频) - 但似乎低延迟功能不暴露于经由NDK的应用程序。

This post suggests that Android devices have ALSA drivers (capable of low-latency audio)--but it seems that low-latency functionality isn't exposed to apps via the NDK.

我已经与Android没有直接的经验,但是从我读过,低延迟(小于&LT; 10毫秒左右)不能成为现实呢。请张贴任何经验,与此相反的!

I have no direct experience with Android, but from what I've read, low-latency (less than <10ms or so) isn't a reality yet. Please post any experience to the contrary!

这篇关于低延迟音频API为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆