New Post: NAudio Audio Playback
Oh right, I must be doing something wrong then - doesn't show up in intellisense for me. Must have the wrong class I guess
View ArticleNew Post: multiple USB microphone recordng
Unfortunately it is not straightforward at all to record three devices and keep them in sync. WASAPI or ASIO will help you get lower latency which will help. All I can suggest is using timestamps for...
View ArticleNew Post: mixing audio received through serial port with a local audio file
you need to get to floating point first, then use a MixingSampleProvider to do the mixing. I'd use a BufferdWaveProvider and use ToSampleProvider() to get the recorded audio as floating point.
View ArticleNew Post: How to get preferred sample rate from the soundcard
I think if you simply create an instance of WasapiOut, its WaveFormat property should indicate the current device sample rate. In Windows is is usually 44.1kHz or 48kHz.
View ArticleNew Post: increase volumne of PCM file into byte array
Dear ioctlLR , Great and simple. Thanks man. really appreciated.
View ArticleNew Post: Is this a Bug for WaveFileWriter
Dear Sir, I am getting mad :( . I am getting sound over serial port , and I use WaveFilewriter class to write data to it at the DataReceived Event . It works great . Thanks, But ,at a certain time , I...
View ArticleNew Post: MFCreateWaveFormatExFromMFMediaType exception
I'm trying to get a WaveFormat from a MediaType via MediaFoundationReader but I'm not sure if this is the correct way of doing it. StructureToPtr is throwing an exception. Line:...
View ArticleNew Post: Is this a Bug for WaveFileWriter
Can you show us the code? It is difficult to see the problem otherwise.
View ArticleNew Post: why divide by 32768f
buffer1 is a double array I going send 32768 sample to my fft because it has to be 2^n number of sample sent to the fft I would told that double has more information than float and int and my graphic...
View ArticleNew Post: why divide by 32768f
It all makes sense now, casting to a double should work fine. Using a Sample Collector/Aggregator may be the best solution. It's a much cleaner way of sending samples to an FFT visualizer. Have a look...
View ArticleNew Post: MediaFoundation CreateWaveFormatFormMediaType
ManuN did you get this working?
View ArticleNew Post: MFCreateWaveFormatExFromMFMediaType exception
I got it working. In MediaFoundationInterop.cs I had to change internal static extern void MFCreateWaveFormatExFromMFMediaType(IMFMediaType pMFType, ref IntPtr ppWF, ref int pcbSize, int flags = 0); to...
View ArticleCreated Unassigned: PlaybackStopped event is not fired in Windows Embedded...
Using NAudio 1.6.0.0When the code below is running in a console application under Windows Embedded Standard 8, it doesn't raise the "PlaybackStopped" event.The exact same application works fine under...
View ArticleNew Post: Odd byte[] array behaviour in WaveFormat
I'm preparing AacWaveFormat based on WaveFormat which has a variable 'Extra Size' at the end. So I added a byte[] array at the end like in WaveFormatExtraData.cs In AacWaveFormat:...
View ArticleCommented Unassigned: PlaybackStopped event is not fired in Windows Embedded...
Using NAudio 1.6.0.0When the code below is running in a console application under Windows Embedded Standard 8, it doesn't raise the "PlaybackStopped" event.The exact same application works fine under...
View ArticleCommented Unassigned: PlaybackStopped event is not fired in Windows Embedded...
Using NAudio 1.6.0.0When the code below is running in a console application under Windows Embedded Standard 8, it doesn't raise the "PlaybackStopped" event.The exact same application works fine under...
View ArticleNew Post: Odd byte[] array behaviour in WaveFormat
what MF function are you actually calling that throws the exception? Maybe I used the NAudio custom waveformat marshaller for that bit, in which case you'll need to tell it about your AAC one.
View ArticleNew Post: Odd byte[] array behaviour in WaveFormat
Same as in CreateTransform in MediaFoundationResampler.cs. SetInputType()
View ArticleNew Post: failed to play the following sound file in naudiodemo
Hi .. in the naudio demo I tried to play back the following file (same file on both links...
View ArticleNew Post: why divide by 32768f
K24A3 I am a little lost here. I was able to find AudioPlayback demo file but I was not able to find AudioPlayback.cs or...
View Article