c++ - Switch audio device using winapi -
i find http://www.daveamenta.com/2011-05/programmatically-or-command-line-change-the-default-sound-playback-device-in-windows-7/ , , works me, want switch audio devices, have 2 audio devices, if active 1st turn on 2nd, if active 2nd turn on 1st. don't know possible check if audio device active in windows
the immdeviceenumerator
com interface used program linked has getdefaultaudioendpoint method.
it returns immdevice interface pointer, same type of interface pointer linked program gets while enumerating.
Comments
Post a Comment