Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Unassigned: How to integrate StreamMediaFoundationReader into a project? [16516]

$
0
0
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: Yes, the normal way to use NAudio is to reference the DLL - easiest to just use NuGet, or get the source and build yourself. The StreamMediaFoundationReader class is relatively new and is not supported on all operating systems.

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>