Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Realtime audio visualization of "what you hear"

$
0
0
I created a device with
WasapiLoopbackCapture.GetDefaultLoopbackCaptureDevice()
and a waveStream with new
WasapiLoopbackCapture(device).
It's recording everything being played through my speakers (I tried saving it to a file and it works), but I'm lost, and I can't find how do I add the visualizer to the project, so it reads from the stream, not from the file.
In the demo you are using
var inputStream = new AudioFileReader(fileName);
to start playback and visualization from the file using FftCalculated & MaximumCalculated and other methods, right?
Can't I read from the stream, not from the file?
Do I have to save stream to a file, playback and visualize it with AudioFileReader(), remove, and save again continously?

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images