Nov 10, 2012 at 6:45 PM
Edited Nov 11, 2012 at 4:26 PM
|
Would it be possible to do this from the source, like was metioned in this thread?
http://naudio.codeplex.com/discussions/254145
Edit: Or could I get some kind of example from this post?
http://naudio.codeplex.com/discussions/85827
or how could I use it in this code?
Private Sub btnPlay_Click(sender As Object, e As EventArgs) Handles btnPlay.Click
If Label1.Text = Nothing Then
Dim wavFile As String
OpenWavFile.InitialDirectory = ""
wavFile = OpenWavFile.ShowDialog()
wavFile = OpenWavFile.FileName
Label1.Text = wavFile
Else
wave = New NAudio.Wave.WaveFileReader(Label1.Text)
output = New AsioOut(comboBoxAsioDriver.Text)
output.Init(New NAudio.Wave.WaveChannel32(wave))
output.Play()
btnPlay.Enabled = False
End If
End Sub
|