Hello Mark Heath.
First I want to thank you and your helpers for this great Sound Lib. You probably made the only full .NET Sound lib with that many functions :) Well, I have to come to my question now:
I set the NAudio.dll reference, set up the imports and declared a new NAudio.Wave.WaveOut
object. Then I init the ogg stream to it and start the playback. How can I implement A FFT Spectrum of the stream now, which winforms element should I use to Display that? I saw you support that in the dsp class. Any short usage example would be great. Full Code:
Imports NVorbis
Imports NAudio
Public Class Form1
Dim stream As System.IO.UnmanagedMemoryStream
Dim waveOut = New NAudio.Wave.WaveOut()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
stream = My.Resources.Test1 '// This is a ogg file, it is only named as Wave file to get a stream ;)
Dim OggStreamReader = New NVorbis.NAudioSupport.VorbisWaveReader(stream)
waveOut.Init(OggStreamReader)
waveOut.play()
End Sub
End Class
You can download the full Project from my public ftp here if you want to take a look into the full Project: ftp://www.untergrund.net/users/Freefall/News%20Section/NVorbis%26NAudioTest.rar