sounds like a driver problem then
New Post: WaveIn stops after unplugging the Mic jack
New Post: WaveIn stops after unplugging the Mic jack
Yes, but I just can't understand that what's the relation of this problem and closing the programs. It seems that something doesn't release after disposing the WaveIn. How it's possible?
New Post: How to create a virtual audio source with NAudio?
So I looked at http://channel9.msdn.com/coding4fun/articles/Skype-Voice-Changer. I started reading at Intercepting Skype Audio.
What I understand is that the most important part is
void OnMicServerExecute(object sender, DataReceivedEventArgs args) { toolStripStatusLabel1.Text = "Got "+ args.Buffer.Length + " bytes"; if (outStream != null) { // give the input audio to the beginning of our audio graph bufferStream.SetLatestInBuffer(args.Buffer); // process it out through the effects outputStream.Read(args.Buffer, 0, args.Buffer.Length); // play it back outStream.Write(args.Buffer, 0, args.Buffer.Length); } }
So you set up a TCPServer you stream the mic-data from skype to. Then you replace the stream with your modified data and give it to outStream, which again is delivered to the other side. So outputStream has to contain my contentsomehow. This is where the problem comes in. I have my microphone connected with LINE-IN. I want the LINE-IN stream to be mixed with a sound file I am currently playing using
void abspielen(string Dateiname, float ZielAmplitude) { Klangwiedergabegeraet = new WaveOutEvent(); Klangwiedergabegeraet.DeviceNumber = cbAusgabegeraete.SelectedIndex; timer1.Enabled = true; ISampleProvider StueckchenHalter = null; try { StueckchenHalter = CreateInputStreamS(Dateiname,ZielAmplitude); } catch (Exception createException) { MessageBox.Show(String.Format("{0}", createException.Message), "Error Loading File"); return; } try { Klangwiedergabegeraet.Init(new SampleToWaveProvider(StueckchenHalter)); } catch (Exception initException) { MessageBox.Show(String.Format("{0}", initException.Message), "Error Initializing Output"); return; } Klangwiedergabegeraet.Play(); }
Please give me a route to accomplish this.
New Post: WaveIn + _DataAvailable + WaveMixerStream32
So I have void waveInStream_DataAvailable(object sender, WaveInEventArgs e)
How do I deal with e.Buffer to create an object that WaveMixerStream32 can add with AddInputStream?
New Post: WaveIn stops after unplugging the Mic jack
I couldn't find the main problem of the software part, but I solved this problem by disabling the "front panel jack detection" in Realtek HD Audio Manager software. I hope it can help some one.
New Post: Visual Studio 2012 express - NAudio Components don't show in toolbox
Hi I am a C# beginner too. I followed the steps
1) right click into the toolbox
2) click "Choose items"
3) in the now visible "Choose Toolbox Items"-dialog click on "browse"
But I can't find the naudio.dll Here. But I added Reference "NAudio.dll".
What the problem I have created ?
New Post: Moving source code on GitHub
From: markheath
Yes, github is really nice and I have an account there and have contibuted to some projects.
There are a few reasons why I have no plans at the moment to move there though:
- There is a long history of discussions and issues for NAudio on Codeplex that would not easily move across. Also existing forks would need to be moved.
- I prefer Mercurial to Git and github forces all projects to use Git.
- My place of work blocks the ports git uses, making it very hard for me to do anything with git at work.
My hope is that codeplex keeps evolving to be competitive with github. There have been some steps in the right direction recently.
Read the full discussion online.
To add a post to this discussion, reply to this email (naudio@discussions.codeplex.com)
To start a new discussion for this project, email naudio@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com
New Post: G.727 Support
Hello Mark,
I'd like to use NAudio to play 5-, 4-, 3- and 2-bit/sample ADPCM (G.727), but as far as I see G.727 is not supported. Am I wrong with that assumption? Do you see any chance to play that files?
Best regards
Karsten
New Post: G.727 Support
NAudio can use any ACM codec installed on your system. So if you have a G.727 ACM codec, you will be able to use it to decompress the audio. You would also need to create a WaveFormat with exactly the right parameters for the codec to pick it up.
New Post: G.727 Support
Hi Mark,
thank you for your fast reply.
I don't have a G.727 ACM codec installed, but me collegue gave me a dll where I can call a function to convert from G.727 to ALaw.
The last hours I tried to write G727WaveStream which inherits WaveStream. In its Read() method I do the convertion. Unfortunately that does not work yet. Is the choosen path right or do I have to try a different approach?
Ciao
Karsten
New Post: G.727 Support
Yes, that is a reasonable enough solution. WaveStream is a bit more complex to implement than IWaveProvider as it also suports repositioning
New Post: Remove noise from Audio file
I'm a beginner. I want to know how to remove noise from an audio file.
(More over : Is it easy or possible to remove the noisy part of the file manually from plotted waveform of the file ?)
New Post: G.727 Support
Actually I need repositioning, but that task comes later. For now I would be happy if I understood, how to provide the correct settings to play that adpcm data.
My G727WaveStream provides a WaveFormat which reflects the converted data (ALaw). That should be playable, but WaveOut.Init(g727WaveStream) throws "WaveBadFormat calling waveOutOpen".
I have tried ALL formats, but all I got is the WaveBadFormat exception. Only when I use Pcm as encoding I don't get that exception, but the dll call hangs.
You said the way is correct, so I don't understand what's the problem.
New Post: G.727 Support
You'll still need to use WaveFormatConversionStream.CreatePcmStream to go to PCM before you try playing.
New Post: Generate bandpass filtered white noise
Hi Mark,
I'm using your NAudio library to generate acoustical stimulations in a psychophysic experiment.
By the way, Great work !!!
I need to generate a white noise filtered between 800Hz-1200Hz.
Generating a white noise is quite simple.
But how can I filter it to the requested frequency band?
Thanks in advance,
Ron
New Post: Generate bandpass filtered white noise
I'm afraid NAudio doesn't come with a bandpass filter (I'd like to include some filters in the future). What I normally do in cases like this is find some C code that does the filtering (there are good sites out there that will work out filter coefficients and even generate the code), and then port it to C#. If you are using the ISampleProvider interface, this should be quite straightforward, as you'll just be processing samples as 32 bit IEEE floats as they come through your Read method.
Mark
New Post: Remove noise from Audio file
You'd have to come up with your own algorithm that decided what was noise. For the second part of your question, have a look at the .NET Voice Recorder project I created which allows you to view the waveform and trim to a selected region.
New Post: Generate bandpass filtered white noise
Hello,
If I can afford ,
you can use the example in BiQuadFilter.
It just takes a little change for use with iSample.
I use it for multiple parametric Equalisers.
I tested LowPass and HiPass and they functioned properly.
New Post: Generate bandpass filtered white noise
ah yes, I forgot that was still in there :) I want to get this converted to ISampleProvider for the next NAudio
New Post: Play Pause Play
Hello,
Thank you for your comment.
I had a moment to consider this solution.
I must find the time to implement it.