我希望能够将自定义声音 mp3 输出到聊天轮盘等应用程序。我可以将其设为“虚拟麦克风”,然后在聊天中选择它(就像 iso 是虚拟 CD 驱动器一样)。或者通过使用 NAudio 将 mp3 输出到 wave 中。
这似乎不起作用(如在 DOES compile、DOES Excecute 中,但录音机不显示任何声音)。
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()