我想使用 Visualizer 类以特定格式捕获系统范围的音频。 (44.1khz,16 位,立体声)
我不知道如何请求将某种格式返回给我。我可以在 Gingerbread 和更早的版本中进行修改,以返回 16 位格式的音频,但仍然没有立体声。 StackOverflow 有什么想法吗?
最佳答案
It is not an audio recording interface and only returns partial and low quality audio content.
和
Two types of representation of audio content can be captured:
- Waveform data: consecutive 8-bit (unsigned) mono samples by using the getWaveForm(byte[]) method
- Frequency data: 8-bit magnitude FFT by using the getFft(byte[]) method
无需修改 Android 本身,您就可以掌握例如展示台的输入缓冲区我不明白如何获得具有更高采样率/更多 channel 数的数据。
关于java - Android Visualizer 立体捕捉,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14371608/