日期:2014-05-18  浏览次数:20821 次

哪位兄弟做过C#录音,音频编辑,和音频转换?高分请教!
查了相关资料,winmm.dll和directsound都可以做录音和录音波形图,都可以支持vista系统。
现在的问题是,此二者都可以做音频编辑吗?都可以做音频转换吗?
如果不行,请给一些相关建议!
有相关控件和C#示例代码参考就更好了!

我最多只能给100分,问题解决可以另开帖加分!

------解决方案--------------------
没做过, 帮顶
------解决方案--------------------
我试玩的 DirectShowLib 下有这样一个目录不知符合你的要求
DirectShowLibV2-0\Samples\Editing\DESCombine

The DESCombine can be used to combine multiple audio and video files, or specific sections
of those files into a single output. For example, you can take seconds 5-9 of videofile1.avi
combine them with seconds 2-7 of videofile2.mpg, and output them to foo.avi. Similarly with
audio files. Note that this is only a small subset of what can be done with DES.

A sample showing how the library can be used from VB is included in the DesCombineVB directory.

When using the sample program, if you want to use both the video and audio from a file, you
should add the same file as both the video and audio file (when using the lib, just call 
AddAVFile). If you add audio from different files, note that the library doesn't make
any effort to make sure that a given audio clip and a video clip are the same length.
If you have a 5 second audio and a 14 second audio clip playing under two 8 second video 
clips, the second audio clip will start playing as soon as the first audio clip is comlete.
Also, since the audio in this example is longer than the video (19 > 16), you would have 3
seconds of audio with black video.

Here are some step-by-step instructions of how the library might be used. You should
also check out DESCombine.chm.


------解决方案--------------------
你不说想干什么,大家怎么告诉你呀
------解决方案--------------------
没做过, 帮顶
------解决方案--------------------
应该选择directshow
DirectShow通过不同的Filter, 将输入输出处理通过Filter连接起来,成为一个完整的输入输出流。
具体你可以上网找找啊,DirectShow如果不要自己写Filter是很简单的。





录音, 其实就是使用声卡,将声音这种模拟信号,按照一定的采样率进行采样,变成离散的数字信号,也就是PCM数据。 然后你就可以用某一种文件格式进行编码保存了,比如MP3 OGG WMA等。

录音就是这个采集的过程,一般来说,对于常见格式,可以非常方便地完成上述操作。直接Capture就可以,你自己完全不必担心中间的过程。

音频转换一般是格式转换,最直接的方式,就是先将音频解码到PCM数据,然后根据需要输出的音频格式,对PCM数据再次编码输出。

音频编辑要看你具体要实现什么功能,这个可以说是最复杂的了。

------解决方案--------------------
directsound 是使用硬件对声音进行播放的一个DX组件

一般提供静态缓冲区 和 循环缓存区2种播放方式。
------解决方案--------------------

------解决方案--------------------
很专业的东西-。-
------解决方案--------------------
学习下!!
------解决方案--------------------
学习一下
------解决方案--------------------
帮顶.........
------解决方案--------------------
我有java写的一个 不知道你有用不 需要可以qq 8526071
------解决方案--------------------
AudioStudio3 组件非常好
------解决方案--------------------
调用win32 API 

waveOutOpen + waveOutWrite 

WAVEFORMATEX是格式结构 

------解决方案--------------------
厉害
------解决方案--------------------
学习一下!
------解决方案--------------------