NAudio Mp3 到 WaveIn
我希望能够将自定义声音 mp3 输出到聊天轮等应用程序。我可以将其设置为“虚拟麦克风”,然后在聊天窗口中选择它(就像 iso 是虚拟 CD 驱动器一样)。或者通过 NAudio 将 mp3 输出到波形中。
这似乎不起作用(如确实编译,确实执行,但录音机不显示任何声音)。
Dim DSO As New DirectSoundOut(DirectSoundOut.DSDEVID_DefaultCapture)
Dim mp3 As WaveStream = New Mp3FileReader("D:\Muziek\Irish rebel songs\Athenrye - The armagh sniper.mp3")
DSO.Init(mp3)
DSO.Play()
I wan to be able to output custom sounds mp3's to applications like chatroulette. I can either do that be a 'virtual microphone' and then select it in chatroulette (like an iso is an virtual cd drive). Or by outputting the mp3 to the wave in with NAudio.
This doesn't seem to work (as in DOES compile, DOES Excecute, but the recorder doesnt show any sounds).
Dim DSO As New DirectSoundOut(DirectSoundOut.DSDEVID_DefaultCapture)
Dim mp3 As WaveStream = New Mp3FileReader("D:\Muziek\Irish rebel songs\Athenrye - The armagh sniper.mp3")
DSO.Init(mp3)
DSO.Play()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新 抱歉,误解了您想要执行的操作。不幸的是,您无法使用 DirectSound 在捕获设备中播放。
UPDATE Sorry, misunderstood what you were trying to do. Unfortunately, you can't play into a capture device using DirectSound.