[wdmaudiodev] Can I use IAudioProcessingObject::Reset to retrigger format negotiation without stopping previously-ongoing audio processing?

  • From: Culann mac Cabe <culann@xxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Mon, 15 Oct 2018 14:31:51 +0100

Hello wdmaudiodev people

I am writing an APO whose input format compatibilities may change
mid-audio-process, (when the user changes a certain property, which can
happen at any time).

So essentially when the User makes this property change, I'd like to
restart the whole format negotiation process, preferably without stopping
audio playback (I can accept the inevitable audio "click/pop" that will
result).

Is IAudioProcessingObject::Reset
<https://msdn.microsoft.com/9d8c13cb-012e-4b5e-a1fd-1c2e5b9200b8> my friend
here?  As far as I can tell, this will do what I need, although it's not
clear if Windows will restart audio playback (if it was ongoing) after the
Reset call and all the other calls that it precipitates.

(Btw I'm using "old-style" APO, as I need Win7 compatility).

Thanks!
Culann mac Cabe

Other related posts: