Robert Bielik skrev 2010-11-02 08:15:
So my question: How do I do programmtically the same thing as the "Advanced" tab "Default format" section does ?
Ok, some googling later. The short answer to that question is "You don't". Great. Microsoft must really hate audio developers. But I managed anyway to get windows to query the device again, by DELETING the default format registry entries. Hah! This has problems though if I change the samplerate only f.i., then the client of my VAD won't know what happened but happily stream on (with what it thinks is the correct samplerate). In this thread: http://social.msdn.microsoft.com/Forums/en/windowspro-audiodevelopment/thread/187692f0-c71a-4317-98f9-77bcc6d67d08 Mitch Rundle says there are ways to "invalidate" the device, so that currently streaming applications will need to restart streaming. If this can be done, then I wouldn't have to "hack" my way around this, for lack of a better word, bug. Care to share those "ways" ? /Rob ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/