Back to Naudio

NAudio.Dmo

src/NAudio.Dmo/README.md

3.0.11.7 KB
Original Source

NAudio.Dmo

DirectX Media Object (DMO) and DirectSound support for NAudio. Windows-only (net9.0-windows).

What's included

  • DMO effectsDmoEffectWaveProvider<TEffector, TParam> with built-in wrappers for the Windows audio effect DMOs (echo, chorus, compressor, distortion, flanger, gargle, I3DL2 reverb, param EQ, waves reverb)
  • DMO MP3 decoderDmoMp3FrameDecompressor (IMp3FrameDecompressor implementation backed by the Windows Media MP3 Decoder DMO)
  • DMO resampler streamResamplerDmoStream (wraps the wmcodecdsp resampler as a WaveStream)
  • DMO enumerationDmoEnumerator for discovering installed audio DMOs
  • DirectSound playbackDirectSoundOut, the legacy DirectSound output path

When to use it

DMO and DirectSound are legacy Windows audio APIs. Reach for them when you need a built-in Windows effect (echo, reverb, chorus, etc.) without pulling a third-party DSP library, or when targeting older code paths that already rely on DirectSoundOut. For new code, prefer MediaFoundationResampler (in NAudio.Wasapi) over ResamplerDmoStream, and WasapiPlayerBuilder over DirectSoundOut.

This package was carved out of NAudio.Wasapi for NAudio 3 so consumers who only want WASAPI / MediaFoundation don't transitively pull DMO and DirectSound interop.

See the NAudio documentation site for tutorials and the full API reference, or the GitHub repository for full documentation and tutorials.

License

MIT.