I want to use the StreamMediaFoundationReader class in my application, to process the signal form the microphone in real time (i.e. without using disk I/O). I tried adding StreamMediaFoundationReader.cs to the project, but it threw a bunch of reference errors when I tried to compile. So, I looked up the required source code, added those files and tried again, and again...
So far, I have added these files to the project, with no end in sight:
AcmInterop.cs
AcmStream.cs
AcmStreamHeaderStatusFlags.cs
AudioCapture.cs
Mp3FrameDecompressor.cs
NAudio.Wave.cs
StreamMediaFoundationReader.cs
Am I doing this the hard way? Can I install a library or do I just have to keep iterating as I've been doing, until there are no more reference issues?
Thanks!
- Al
Comments: Sorry, still struggling. When I use thee NuGet package, my project build throws a missing reference error for StreamMediaFoundationReader. I have confirmed that 'StreamMediaFoundationReader.cs' is in the compile include list in 'NAudio.csproj', so I don't know what is wrong. Do I need another 'using' statement? (I only have 'using NAudio' and 'using NAudio.Wave')
So far, I have added these files to the project, with no end in sight:
AcmInterop.cs
AcmStream.cs
AcmStreamHeaderStatusFlags.cs
AudioCapture.cs
Mp3FrameDecompressor.cs
NAudio.Wave.cs
StreamMediaFoundationReader.cs
Am I doing this the hard way? Can I install a library or do I just have to keep iterating as I've been doing, until there are no more reference issues?
Thanks!
- Al
Comments: Sorry, still struggling. When I use thee NuGet package, my project build throws a missing reference error for StreamMediaFoundationReader. I have confirmed that 'StreamMediaFoundationReader.cs' is in the compile include list in 'NAudio.csproj', so I don't know what is wrong. Do I need another 'using' statement? (I only have 'using NAudio' and 'using NAudio.Wave')