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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -