Mark Heath
Mark Heath
I'd recommend getting rid of the loop and `Threading.Thread.Sleep(100)`, and instead subscribe to the `PlaybackStopped` event of `wvOut`
What callback model were you using? The Function callback model has a lot of problems with deadlocks. But otherwise it could just be a problem with the underlying drivers for...
It's designed that way to minimise the need for allocating memory or requiring garbage collection during playback. The expected way to use the `Read` method on `ISampleProvider` is to make...
To troubleshoot, I'd start by saving the whole thing to an aac file. Then see if Windows Media Player (or similar) can play it succesfully. And then see what using...
thanks for sharing your solution
MP3 is encoded as a series of "frames" and is not sample accurate. I believe that there are other formats (maybe AAC or Opus) that can encode an exact number...
Newer versions of Windows come with FLAC support so MediaFoundationReader should be able to play FLAC files, and the MediaFoundationEncoder also ought to be able to encode to FLAC.
The design of sample providers is that they should always return `count` from the `Read` method unless they have reached the end. That's because it's often being called to fill...
Well you could make your own custom `MixingSampleProvider` that coped with sources returning < Read, but things start to get complicated pretty quickly. Let's say I asked for 1000 samples,...
An access violation can be hard to track down because it could be completely different code that is corrupting memory. Is there any other unsafe code or interop involved?