New Post: NAudio 1.7 Wave Recording
That helped. Creating a WaveIn instance + assigning the selected device # worked well. My app also had a problem concerning the order in which it created the WaveWriter and started listening to waveIn,...
View ArticleNew Post: noisy input
That doesn't look like audio data to me. I suggest you try the sample aggregator instead of using DataAvailable.
View ArticleNew Post: Adaptive Mic Recording (Fill glap with silence to keep accurate time).
That's what i am trying to do know, not really sure how to do it. if (Record) { if (FileCreated != 0) { if (calltimer.IsRunning == false) CallTimeThread.Start(); if (TimeSpan.FromMilliseconds(TestTimer...
View ArticleNew Post: Adaptive Mic Recording (Fill glap with silence to keep accurate time).
Try using .TotalMilliseconds instead of .Milliseconds Any length over 1 second would be lost.
View ArticleNew Post: How to read in from a two channels Microhone
Take a bigger snapshot until you are happy with the frequency detail. 4096, 8192 etc..
View ArticleNew Post: Problem mixing a-law wavestream
Hi mark, I've been using NAudio for the past few day mixing two wave file with this format : New Encoding: ALaw New SampleRate: 8000 New BitsPerSample: 8 New Channels: 1 New Block Align Channels: 1 New...
View ArticleNew Post: WaveFormat.CreateCustomFormat() cannot be accessed with an instance...
I'm a bit confused as to why this is happening.. I need to create a custom WaveFormat due to AAC SBR samplerate doubling, but I'm getting the compile error below. It doesn't tell me which parameter is...
View ArticleNew Post: WaveFormat.CreateCustomFormat() cannot be accessed with an instance...
Nevermind, problem solved. The WaveFormat in my class was conflicting with NAudio.Wave.WaveFormat // Solution outputWaveFormat = NAudio.Wave.WaveFormat.CreateCustomFormat(WaveFormatEncoding.Pcm,...
View ArticleNew Post: Problem mixing a-law wavestream
first decompress the A-law to PCM (use WaveFormatConversionStream.CreatePcmStream), and then can convert to a SampleProvider to do your mixing with a MixingSampleProvider. Mark
View ArticleNew Post: Problem mixing a-law wavestream
Thanks Mark, I found my full answer in this post : https://naudio.codeplex.com/discussions/251475 but still have some problems! I wrote below code according to discussions # 251475 : WaveFileReader r1...
View ArticleNew Post: Adaptive Mic Recording (Fill glap with silence to keep accurate time).
It seems to work: if (Record && connect) TestTimer += e.Buffer.Length / 192; else TestTimer = 0; if (!RecordTimer.IsRunning && Record) { RecordTimer.Reset(); RecordTimer.Start(); } else...
View ArticleNew Post: Alaw Pcm Conversion & MixingStream32 or MixingStream16
Hi I have the same problem and wrote these lines of code acoording to this discussion, WaveFileReader r1 = new WaveFileReader(...); WaveFileReader r2 = new WaveFileReader(...); WaveFormat...
View ArticleNew Post: Problem Play Raw file using Naudio
Not sure but perhaps the "Thread.Sleep(20)" line is causing the problem?
View ArticleNew Post: plot frequency or covariance graph
NAudio can supply the raw samples so yes you can send the data to any kind of audio visualizer. Have a look at the WPF sample in the NAudio source.
View ArticleNew Post: How to play mp3 from a memory stream?
Yes, Mp3FileReader supports System.IO.Stream WaveStream mp3stream = new Mp3FileReader(youriostream);
View ArticleNew Post: Problem Play Raw file using Naudio
If its playing at 50%, you're probably sending the wrong sample rate / channel count. Really you should be looking for help in the documentation of whatever serial port audio device you are using....
View ArticleNew Post: Adaptive Mic Recording (Fill glap with silence to keep accurate time).
Not sure but I suggest you go back a step and test the basic functionality of each main function. For example make sure the input data is arriving as expected, ensure SendQueue is working as expected,...
View ArticleNew Post: plot frequency or covariance graph
Hi K24A3, thx for the reply. Which samples do show the plotting frequency and covariance graph? Can you tell me so that I can study it. Thx a lot.
View ArticleNew Post: plot frequency or covariance graph
Download the source and have a look at the NAudioWPFDemo, it sends the samples to a waveform visualizer. Use the SampleAggregator to collect the samples on the fly and send the collection to your...
View ArticleNew Post: plot frequency or covariance graph
As far as I know the frequency plotting and covariance graph is not demoed in the samples, you'll need to provide this yourself. But you got the basics covered, for any visualizer you need sample data...
View Article