如何将许多音频文件与Naudio混合在一起?
例如,我有5个音频文件。而且,我想将这些文件与C#Naudio结合起来。
<------- A.wav -------> <---- B.wav ---->
<---- C.wav ----> <-- D.wav --> <- E.wav ->
我盯着,但我可以找到应用这种情况的解决方案。
<----- A.wav ----->
<-- B.wav -->
<------ C.wav ------>
如何将许多音频文件与每个长度和位置结合在一起?
For example, I have 5 audio files. And, I want to combine these files with C# NAudio.
<------- A.wav -------> <---- B.wav ---->
<---- C.wav ----> <-- D.wav --> <- E.wav ->
I goggled but I can find a solution which apply this situation.
<----- A.wav ----->
<-- B.wav -->
<------ C.wav ------>
How can I combine a lot of audio files with each length and position?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
MixingSpampleProvider
来完成此操作。为每个文件使用
AudioFilereDer
。然后使用delayby
在iSampleProvider上扩展
在每个文件的开始时插入沉默,以便它们以正确的位置开始。You can do this with the
MixingSampleProvider
Use an
AudioFileReader
for each file. Then use theDelayBy
extension onISampleProvider
to insert silence at the start of each file so they begin at the correct position.