pje / WavTap

globally capture whatever your mac is playing—as simply as a screenshot
MIT License
749 stars 85 forks source link

How to switch the input device at start? #39

Closed flocked closed 11 years ago

flocked commented 11 years ago

Sorry, that this isn't an issue, but maybe someone can help me. I can't find the answer anywhere.

How can I switch the input device to "WavTap" at the start of the app. I find the solution to switch back to the default input, but is there any way to switch to "WavTap" at the start?

The method rebuildDeviceList can only find three audio devices (default input, default output, wavtap output), but not wavtap input.

flocked commented 11 years ago

Solved. Found the answer here: http://stackoverflow.com/questions/4575408/audioobjectgetpropertydata-to-get-a-list-of-input-devices

The answer with 8 votes shows me ALL the input devices, including "WavTap" and gives me the right AudioDeviceID. Now I can automatically switch the input device at the start of WavTap.