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

New Post: Visualization/Waveforms with mixed wav files

$
0
0
So I've started using NAudio and it's AWESOME. I had an application in mind and started using Naudio and everything is working perfectly. I've only run into one issue: I'm taking lots of small wav file samples and concatenating them, truncatiing, adding extra blank audio, etc to create my music. I tried out the WaveForm Demo to create a visualization and it worked great for a single wave file.

Then I got really advanced and started mixing wav files together. The mixing demo worked great for playing the different wav files, but then I realized... getting that Visualization to work might be tough when mixing. I can go through the waveform demo where it reads through an AudioFilereader and finds the max value of each sample and then I could loop through the other wave files, making sure the buffer size is the same and comparing the max values to the previous max values. BUT before I go through all that I guess the one question I wanted to ask to make my life easier would be.... Can the mixing sample provider, instead of just PLAYING multiple inputs to waveout... can it actually OUTPUT the audio of the mixed wav files to one single wav file? IF that's possible I could save myself a lot of trouble and when rendering the waveform, just read through the one mixed/master wav file.

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>