New Post: WaveIn Valid Sample Rates
Ok thanks Mark. It's not a big deal. Low values (like 8-bits / 8K sample) make the output hiss a little and lowers quality (as expected), but that's the worst that happens. My USB headset microphone...
View ArticleNew Post: MidiOut is not working
MIDI doesn't make any sound on its own, it needs to be connected to a synthesizer. What is connected to MIDI out device 0?
View ArticleNew Post: WaveIn Valid Sample Rates
You better don't use that extremly low latency values. I guess you can't really do anything against that little delay. You really would have to play it in the exactly same millisecond as you say it.
View ArticleNew Post: WaveIn Valid Sample Rates
Thanks filoe. I know .Net isn't the best at timing. The Forms Timer is only accurate to 55 milliseconds which seems like a life-time in CPU instructions. But it is what it is.
View ArticleNew Post: WaveIn Valid Sample Rates
it's not .NET, its the waveIn and waveOut APIs. They are not particularly low latency. You need to work with WASAPI or ASIO to go to lower latencies.
View ArticleNew Post: WaveIn Valid Sample Rates
Ok, thanks Mark, good to know. I'll keep that in mind. I want to stick with WaveIn/Out for now because I have XP users. And XP is still 40% of the OS marketshare -- too big to ignore.
View ArticleNew Post: Stream WAV File
I am trying to figure out how to stream a WAV file. There are examples on stream MP3 files but nothing for a WAV file. I have managed to create a WaveStream and play it back. However, when I try to...
View ArticleNew Post: Mixing audio from directshow
I know this is several years old now, but I am trying to do the same thing. I have a new thread: http://naudio.codeplex.com/discussions/435595
View ArticleNew Post: Stream WAV File
I'm not sure what you are trying to do here. Why not just play directly from a WaveFileReader? If you are receiving WAV over the network, then just stick it into the BufferedWaveProvider (and increase...
View ArticleNew Post: Stream WAV File
I am trying to simulate my network traffic before I go off an code that part. I should be able to read bytes from a queue and add them to my WaveProvider continously.
View ArticleNew Post: Stream WAV File
I figured it out. The problem was in the AddAudio method. If I use this method it works: private void AddAudio(WaveStream convertedStream) { int sampleRate = convertedStream.WaveFormat.SampleRate; int...
View ArticleNew Comment on "WAV"
This worked for me to play a wav file: using NAudio.Wave; ..... var soundFile = "Something.wav"; using (var wfr = new WaveFileReader(soundFile)) using (WaveChannel32 wc = new WaveChannel32(wfr)...
View ArticleNew Post: How to user StereoToMonoProvider
I am trying to get SteroToMonoProvider to work. So have I have there working.private WaveFormat _waveFormat = new WaveFormat(44100, 16, 2); _waveProvider1 = new BufferedWaveProvider(_waveFormat);...
View ArticleNew Post: How to user StereoToMonoProvider
that's because it's mono. Mono is the same in both speakers. You want to go mono to stereo instead.
View ArticleNew Post: How to user StereoToMonoProvider
So I switched to use a MonoToStereoProvider class and get the "Source must be Mono"?
View ArticleNew Post: How to user StereoToMonoProvider
yes, MonoToStereo takes mono in and gives stereo out. You want stereo in and stereo out,, but with the channels swapped about a bit from the sounds of it. You'd need to make a custom provider to do that.
View ArticleNew Post: How to user StereoToMonoProvider
Yeah I want to take a stereo input and then only hear the left or the right channel. Do I need to create a provider to do that?
View Article