简体   繁体   English

n音讯。 录制多声道声音

[英]NAudio. Recording multichannel sound

I'm working with Naudio, and i record multichannel sound. 我正在与Naudio合作,并录制多声道声音。 How can i understand what is the channel in my buffer? 我如何理解缓冲区中的通道是什么? This link isn't work on my computer. 此链接在我的计算机上不起作用。 My opinion, that if buffer[] size is 2000: 1,3,5,.. is first channel, 0,2,4 elements is second channel. 我认为,如果buffer []的大小为2000:1、3、5,..是第一通道,则0、2、4元素是第二通道。 Is i correctly understand? 我正确理解吗?

It depends how many bits per sample you have. 这取决于每个样本有多少位。 16 bit is the most common in which case the first two bytes form a sample for channel 1, then the next two bytes form a sample for channel 2, and so on. 16位是最常见的,在这种情况下,前两个字节构成通道1的样本,然后后两个字节构成通道2的样本,依此类推。

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

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