This project has moved and is read-only. For the latest updates, please go here.

Exception on Resampling


When I using ResamplerDmoStream and selecting Anything except WaveOutput (e.g. WASAPI, DirectSound) I've getting below exception:
Unable to cast COM Object 'NAudio.DMO.ResamplerMediaComObject' to interface type 'Naudio.Dmo.IMediaObject' ...


markheath wrote Dec 4, 2012 at 1:25 PM

this is because you are using it from a different thread than the one it was created on. For NAudio 1.7 I'm hoping to come up with some better ways to handle this type of thing