I have successfully used NAudio for any sound processing and abstraction. It is available as NuGet. It has encoders for the Media Foundation (and others).
Here is an example for encoding AAC and back to WAV using NAudio:
using System; using NAudio.Wave; namespace ConsoleApplication11 { class Program { static void Main(string[] args) {
source share