New Post: Mixing multiple WaveStreams
Are you able to tell if any clipping occured (i.e. did the summed audio go over 1.0 at any point)? The conversion back to 16 bit ought to clip to plus or minus 1.0 before multiplying up by 32,768 to...
View ArticleNew Post: Mixing multiple WaveStreams
It seems to be clipping correctly (I put some breakpoints in and there were numbers over 1.0, but it set them to 1.0). So right now I have: Main voice provider that has a mixer provider object. Mixer...
View ArticleNew Post: Mixing multiple WaveStreams
Could it be because I'm using DirectSoundOut as my player?
View ArticleNew Post: Mixing multiple WaveStreams
OK, if it is clipping, then you will be introducing some distortion. It may be that your input streams are at a high level (perhaps using some kind of automatic gain). Try reducing the volume of the...
View ArticleNew Post: Mixing multiple WaveStreams
Okay, that didn't change the result. Something is obviously not right when converting to/from 16bit to 32bit as this didn't happen before. I've checked the wave formats, set the volume at both the...
View ArticleNew Post: Mixing multiple WaveStreams
Are you able to write out to WAV file at any stage in your pipeline? I should probably add a utility waveprovider to NAudio that does this but it's not too hard. Create a class that implements...
View ArticleNew Post: Use WaveIn to get Pitch (fft/autocorrelator).
I am also interested on this...
View ArticleNew Post: Use WaveIn to get Pitch (fft/autocorrelator).
Well all that is needed is to make sure you have the right number of samples. Because of the use of FFT, you need a power of two. So you could set up your buffer sizes carefully so that each...
View ArticleSource code checked in, #9fa739017480
added new MultiplexingWaveProvider and MultiplexingSampleProvider classes for more effective handling of multi-channel audio. Unit test assembly now is .NET 3.5 so it can make use of Moq (should be...
View ArticleUpdated Wiki: Documentation
The NAudio Documentation Wiki NAudio FAQ What is NAudio? NAudio is an open source audio API for .NET written in C# by Mark Heath, with contributions from many other developers. It is intended to...
View ArticleUpdated Wiki: Documentation
The NAudio Documentation Wiki NAudio FAQ What is NAudio? NAudio is an open source audio API for .NET written in C# by Mark Heath, with contributions from many other developers. It is intended to...
View ArticleNew Comment on "Convert a MP3 to WAV"
NAudio does not convert to MP3. I suggest using LAME.exe to do this
View ArticleNew Post: Joining MP3 files
Hi, I am basically trying to write a small utility to join MP3 files. I found some samples on Stackoverflow showing how to do it using NAudio:...
View ArticleNew Post: Joining MP3 files
can you actually hear the whole file (i.e. both parts you concatenated)? Windows Media Player is probably using the the Xing header that appears at the start of many VBR files to work out duration....
View ArticleNew Post: Joining MP3 files
Hi Mark, Thanks for the swift reply. Yes, I am able to hear both songs if I merge them. I noticed Windows Explorer gets the length right, while Media Player doesn't. I merged two songs with lengths of...
View ArticleNew Post: Joining MP3 files
I did some changes to try to find if there were any Xing header in the source files: According to the article in the link bytes on index 4 thorugh 7 of the raw frame data would then be either "Xing" or...
View ArticleNew Post: Joining MP3 files
it might be that in the absence of a xing header, Windows Media Player guesses that this is a CBR file and estimates a duration based on the bitrate of the first frame.
View ArticleNew Post: NAudio crashes on startup.
Reconfirming gelasio's finding with December's 1.5 release. AnyCPU throws the exception, x64/x86 does not.
View ArticleNew Post: NAudio crashes on startup.
@Artfunkel. That is very strange. Are you also using NAudio from IIS? What class within NAudio are you using when the crash occurs.
View Article