Hi Mark,
Thanks so much for taking the time to address all these questions and helping all of us out with NAudio. I am still having some difficulty with the same issue I had previously asked. The reason that I am using the WaveFormatConversion Stream is because I am trying to convert from MP3 then to 11025hz, mono, single channel PCM. Then convert that to float[] which is then sent to Echoprint Codegen to make an audio fingerprint for use in identifying songs.
Depending on what I use for the sample.mp3 the result is always the same with the first approx 300 bytes from the wave conversion stream is always zeros. One of the key things is that you may need to know is that I am trying to extract 30 seconds of the mp3, 10 seconds into the audio.
The original Codegen.exe uses FFMPEG to convert an mp3 and return the requested float[] and when I run the sample.mp3 through ffmpeg and compare it to what i get using NAudio they are not the same.
Any advice you can give would be most helpful and thanks again for spending your time responding to these questions.
I should also say that I have not been able to figure out how to use the .ToSampleProvider() that you suggested I use.
BTW " I would be your friend as I like talking about C# and .Net programming :) I would even buy the coffee"
Regards
Ray
Thanks so much for taking the time to address all these questions and helping all of us out with NAudio. I am still having some difficulty with the same issue I had previously asked. The reason that I am using the WaveFormatConversion Stream is because I am trying to convert from MP3 then to 11025hz, mono, single channel PCM. Then convert that to float[] which is then sent to Echoprint Codegen to make an audio fingerprint for use in identifying songs.
Depending on what I use for the sample.mp3 the result is always the same with the first approx 300 bytes from the wave conversion stream is always zeros. One of the key things is that you may need to know is that I am trying to extract 30 seconds of the mp3, 10 seconds into the audio.
The original Codegen.exe uses FFMPEG to convert an mp3 and return the requested float[] and when I run the sample.mp3 through ffmpeg and compare it to what i get using NAudio they are not the same.
Any advice you can give would be most helpful and thanks again for spending your time responding to these questions.
I should also say that I have not been able to figure out how to use the .ToSampleProvider() that you suggested I use.
BTW " I would be your friend as I like talking about C# and .Net programming :) I would even buy the coffee"
Regards
Ray