I'd be very interested in seeing what you come up with
One thing I have been contemplating is for a WaveFormatChanged event to be raised by MediaFoundationReader (i've actually added one in a recent commit). Then it would be up to the user whether they want to handle it and re-open the playback device at a new sample rate to keep playing, or even to resample the audio themselves.
One thing I have been contemplating is for a WaveFormatChanged event to be raised by MediaFoundationReader (i've actually added one in a recent commit). Then it would be up to the user whether they want to handle it and re-open the playback device at a new sample rate to keep playing, or even to resample the audio themselves.