New Post: Question about the Framework (record only when dB high enough)
sure, you call "StartRecording", but every time a buffer of audio is available (DataAvailable event), you examine the value of each sample. If the volume is greater than a particular threshold, you...
View ArticleCommented Issue: What could cause a "InvalidParameter calling acmStreamClose"...
Some of my users are randomly getting a "InvalidParameter calling acmStreamClose"Sad thing, I can't reproduce this on my machine and I have no hardware information about the users machine.Here is the...
View ArticleNew Post: Question about the Framework (record only when dB high enough)
markheath wrote:sure, you call "StartRecording", but every time a buffer of audio is available (DataAvailable event), you examine the value of each sample. If the volume is greater than a particular...
View ArticleNew Post: Question about the Framework (record only when dB high enough)
Do you know how the bytes are sorted? I mean I got to record sound to a .mp3 (there is a less space consuming file type? quality is no issue) but I want to know how the bytes are sorted in the 'buffer'...
View ArticleNew Post: Playing output from self made MP3 Decoder
Thanks for all the respones, i really like that.So its bug killing time, i think i will use NLayer to see where it goes wrong. I dont know how yet, existing decoders are really well optimised making it...
View ArticleNew Post: Voice Activated Switch
Hi Everyone,I have to implement a sound recorder, that activates with sound and deactivates with silence. It is known as voice activated switch.Is there anyone that has implemented this kind of...
View ArticleCreated Issue: WaveStillPlaying calling waveUnprepareHeader [16385]
I have written an application that uses nAudio to play wav files when 'events' happen, and records audio from the microphone.I am occasionally getting a NAudio.MmException "WaveStillPlaying calling...
View ArticleCreated Issue: System.NullReferenceException in...
I have written an application that uses nAudio to play wav files when 'events' happen, and records audio from the microphone.I am occasionally getting a System.NullReferenceException from...
View ArticleCreated Issue: NAudio.MmException - WaveStillPlaying calling waveOutWrite...
I have written an application that uses nAudio to play wav files when 'events' happen, and records audio from the microphone.I am occasionally getting a NAudio.MmException from...
View ArticleNew Post: NAudio Error question
Ok so I have one last question, I hope you dont mind:Â so now I have a timer which update every 10 miliseconds, after the timer starts i do this :Â waveOutDevice.Dispose();...
View ArticleNew Post: NAudio Error question
you're disposing the waveOutDevice every 10ms? It needs to be kept alive. Really you should open it once and keep it open for the whole duration of your playback.
View ArticleNew Post: NAudio Error question
well I removed the Dispose() line but I can hear sound only if I add Thread.Sleep at the end of the timer. :)
View ArticleCommented Issue: AddTrack [16336]
I noticed what looks like odd behavior while using the AddTrack() method... I might be misunderstanding how to use it but here is some brief debug code to illustrate the situation:{{...
View ArticleNew Post: NAudio Error question
The idea is you create just one device, and only call Init and Play once. Then in your timer, you add inputs to the mixer. Also, starting sounds every 10ms is pretty heavy-duty. You'll be playing 100...
View ArticleNew Post: Question about the Framework (record only when dB high enough)
In a WAV file the bytes are little endian (intel byte order) and are interleaved left channel, right channel. In an MP3 file, you cannot access the samples directly. To make MP3, you record as WAV and...
View ArticleCommented Issue: System.NullReferenceException in...
I have written an application that uses nAudio to play wav files when 'events' happen, and records audio from the microphone.I am occasionally getting a System.NullReferenceException from...
View ArticleCommented Issue: System.NullReferenceException in...
I have written an application that uses nAudio to play wav files when 'events' happen, and records audio from the microphone.I am occasionally getting a System.NullReferenceException from...
View ArticleNew Post: Compare two different audio samples in real-time (karaoke)
Hi zassadgh, did you found a solution for the comparison?
View ArticleNew Post: Sample audio input for square waves
you can examine the value of each sample, by handling the DataAvailable property of WaveIn. This comes as a byte array, so if it was 16 bit samples, you'd use BitConverter.ToInt16 on each pair to get...
View ArticleNew Post: Sample audio input for square waves
Could you show some sudo code as I'm not sure about the bitconverter on each pair. Many thanks.
View Article