New Post: Generating random numbers using NAudio
Hi Mark, I take your point about NAudio not being focused on general programming utilities. As regards creating a sequence of all zeros, the program guards against this as follows: The program...
View ArticleNew Post: Issue Streaming live data
I am trying to stream live audio data (U-Law 8000Hz, 8-bit, Mono) over my network and play it on my client machine. I have it working but I have having an issue with play time. I am using a...
View ArticleNew Post: Convert WaveIn buffer to PCM integers
I think I may stumbled upon the answer by iterating by 2 through the byte array. That way the BitConverter.ToInt16 method combines two byte elements into a 16 bit integer.
View ArticleNew Post: Buffer lenght in read wavestream
Hi, I'm beginner to NAudio. I'm working on tutorial 6 ... and made some change to test. So, i now have sourceStream_DataAvailable handler that fire event on a microphone source stream. I implement a...
View ArticleNew Post: Any recommendations on integrating SoundTouch?
I'm also trying to integrate them but I haven't been successful. If somebody gets it going please let me know. Thanks
View ArticleNew Post: Any recommendations on integrating SoundTouch?
ecruz wrote: I'm also trying to integrate them but I haven't been successful. If somebody gets it going please let me know. Thanks I have integrated SoundTouch using some of the design elements from...
View ArticleNew Post: Convert WaveIn buffer to PCM integers
yes, each pair of bytes is a sample if you are recording 16 bit audio
View ArticleNew Post: Buffer lenght in read wavestream
The buffer sizes of record and playback may not be the same. Use a BufferedWaveProvider for an easy way round this. Add audio as you receive it into the buffered wave provider.
View ArticleUpdated Wiki: Documentation
The NAudio Documentation WikiNAudio FAQWhat is NAudio?NAudio is an open source audio API for .NET written in C# by Mark Heath, with contributions from many other developers. It is intended to provide a...
View ArticleNew Post: Information of an audio file (wma, mp3)
I was trying to do the same...but apparently nobody answers this.
View ArticleNew Post: Information of an audio file (wma, mp3)
this isn't really something NAudio has much support for. For MP3 files, taglibsharp is supposed to be very good. You can also often get information from the IShellDispatch4 from Shell32.
View ArticleNew Post: Volume quirk with Waveout when Pause/Resume play
I found a Volume quirk with Waveout and am wondering if there is a work around. I start a WaveOut playing with 100% volume. Pause it, then set volume to 0%. Then click Resume. I would expect the MP3 to...
View ArticleNew Post: Buffer lenght in read wavestream
Thank you for your quick and nice answer, it runs perfectly. I have another question : When streaming Mic to loudspekaer, the volume is really low compared with playing mp3. I implement a MixerLine to...
View ArticleNew Post: Audio Input Capturing from multiple devices
I'm using the NAudio library to capture Audio Input in C#:int _deviceID; double _previewVal; private void PreviewData() { WaveIn waveIn = new WaveIn(); waveIn.DeviceNumber = _deviceID;...
View ArticleNew Post: Audio Input Capturing from multiple devices
You can only open each device for recording once. Are ou user you are using a different device number each time?
View ArticleNew Post: Audio Input Capturing from multiple devices
The code above is in the class Microphone and PreviewData is called in it's constructor. This is the Method where the instances are created: private ObservableCollection<Microphone> devices = new...
View ArticleNew Post: Audio Input Capturing from multiple devices
How many physical soundcards do you have? Have you made 100% sure deviceID is what you are expecting it to be? Do you always dispose waveIn before opening it again?
View Article