简体   繁体   English

Android-混音了吗?

[英]Android - Mixing down the audio channels?

So I was looking for what amounts to an answer to this question , I suppose. 我想,所以我一直在寻找对这个问题的答案。 I'd like to be able to force audio output to be mono. 我希望能够强制音频输出为单声道。 It seems like it would be easy if I could get direct access tot he raw stream, but if most of the time I'm going to be trying to play a supported format, I think that would be unnecessarily cumbersome. 如果我可以直接访问他的原始流,这似乎很容易,但是如果在大多数情况下,我将尝试播放受支持的格式,我认为这将不必要地麻烦。 Is there a way to do something like add a custom AudioEffect that would just take the output channels and mix them down? 有没有办法像添加自定义AudioEffect那样只使用输出声道并将其混音?

I suppose if anyone has a different suggestion on how to force mono output, I'd be happy to see that, but I think the general question would be relevant for anyone else who has a different particular application. 我想如果有人对如何强制单声道输出有不同的建议,我很乐意看到这一点,但是我认为一般性的问题对其他具有不同特定应用程序的人来说都是有意义的。

I don't know anything about mixing or Audio Engineering, but check out this link . 我对混音或音频工程一无所知,但请查看此链接 That whole page contains TONS of information about reading audio directly from the hardware mic, but that method in particular allows you to have access to the raw byte output from the mic, which you can save to a buffer and edit how you please! 整个页面包含有关直接从硬件麦克风读取音频的大量信息,但是该方法尤其允许您访问麦克风的原始字节输出,您可以将其保存到缓冲区并编辑所需的方式!

Best of luck, and I hope I helped!! 祝你好运,我希望我能帮上忙!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM