New Post: Adaptive Mic Recording (Fill glap with silence to keep accurate time).
How can i use that to Save to a .Wav file? I am using it to playback the audio that's received by just feeding the buffer and playing it. But how can i save the my recording into a buffer and than save...
View ArticleNew Post: noisy input
Hold on, sorry I got confused earlier, I thought the buffer was an int buffer. That explains why you were shifting << 8. Anyway, assuming the WaveIn data is PCM, try this: for(int n = 0; n <...
View ArticleNew Post: Adaptive Mic Recording (Fill glap with silence to keep accurate time).
Use the BufferedWaveProvider with a WaveFileWriter to save the samples to a WAV file. Have a look at the NAudio Samples to see how it works.
View ArticleNew Post: WMAFileReader only likes WaveOut
Hi, I'm creating my own little media player and got mp3 and ogg vorbis (through NVorbis.NAudioSupport) working fine. I'm playing the audio through a WaveOutEvent outputdevice. Today I tried adding...
View ArticleNew Post: noisy input
How would I know if the buffer contains IEEE data? Why to I have to convert it from byte to int ? I will lost data right ? Can't I just go byte to double ?
View ArticleNew Post: Newbie Fade-Out Problems.
Hi and thanks for a great piece of software :) I'm trying to use NAudio to trim wav files and then fade them in and out. I have managed to trim and fade in with 0 problems, but when I try to use fade...
View ArticleNew Post: NAudio 1.7 Wave Recording
I'm trying to record audio in my app, based upon the code found in the NAudio 1.7 Demo app. I have been able to get ASIO and WASAPI recording to work, but can't get waveIn to work. Also, I can't get...
View ArticleNew Post: noisy input
Check the Encoding value of the WaveIn WaveFormat. If the audio was 8 bit then you could read each byte, but it is most likely 16bit which means each byte is half a sample which needs to be combined...
View ArticleNew Post: WMAFileReader only likes WaveOut
it's the threading that's causing the problem, due to the fact that this is a COM-based API. It's a really annoying problem to fix in .NET. You could try using MediaFoundationReader instead which has a...
View ArticleCommented Unassigned: PlaybackStopped event is not fired in Windows Embedded...
Using NAudio 1.6.0.0When the code below is running in a console application under Windows Embedded Standard 8, it doesn't raise the "PlaybackStopped" event.The exact same application works fine under...
View ArticleNew Post: WMAFileReader only likes WaveOut
Thank you! MediaFoundationReader is the solution. Many thanks for this fantastic library!
View ArticleNew Post: Karaoke tool
Hello, I am interested in adding a karaoke tool to my website, and I feel like NAudio and its community could really help me get started. I'm not a super experienced programmer, and i've never used an...
View ArticleNew Post: WaveOut a DeviceNumber
Hi All, Does anyone know what will happen if I give WaveOut a device number of a device that has frozen up (ie no longer communicating with windows). I can't test this myself because it's a remote user...
View ArticleNew Post: NAudio 1.7 Wave Recording
strange, are you sure you're recording from the correct device? what happens when you use the NAudioDemo app to record?
View ArticleNew Post: Newbie Fade-Out Problems.
SampleProviders don't know when the end of the file will be, so BeginFadeOut means begin the fade-out immediately. I'd personally make a custom ISampleProvider that in its Read method began the fade...
View ArticleNew Post: Playback plays at 50% speed with AAC files
Well I finally got reliable SBR detection working. It actually plays more oddly formatted AAC files than Winamp now, including the LTP profile. For those who are trying to do the same thing and...
View ArticleNew Post: NAudio 1.7 Wave Recording
Mark I tried recording with the NAudioDemo app using both waveIn & waveIn Event CallBacks for all 4 of my devices. In all cases, the recordings consist of complete silence. I traced the code and...
View ArticleNew Post: NAudio 1.7 Wave Recording
device 0 means use the default recording device IWaveIn is a generic interface that all recording APIs implement, so DeviceNumber is not relevant to all of them. Create a concrete instance of WaveIn,...
View ArticleNew Post: Playback plays at 50% speed with AAC files
sounds like you are making good progress. I haven't had a lot of time for NAudio stuff recently, but hopefully get round to looking at your AacFileReader soon. I'm also very interested in what you've...
View ArticleNew Post: Newbie Fade-Out Problems.
You are a superstar :) As said I'm only a week into learning C#, so imagine that is going to cause me some puzzlement. lol But really appreciate the feedback as lets me know I'm not just making a...
View Article