I'm trying to use soundflower and co. to record desktop sound, but I'd like to be able to adjust the volume of my headphones simultaneously.
The volume buttons adjust soundflower if I set the system sound device to soundflower and use LineIn to PlayThru to the headphones (same problem with soundflowerbed), or the volume buttons don't work at all if I use an aggregate device.
What can I do to make the volume buttons control the headphones and not soundflower (which I always want to be at max)?
Best Answer
I did eventually get around to solving this using ControllerMate and Multi-Output Devices instead of LineIn.
Using Audio MIDI Setup I created a Multi-Output Device that outputs to both Soundflower and my headphones:
Now use this device for system-wide sound output.
Then using ControllerMate and an accompanying AppleScript I was able to 'bind' the volume buttons on the headphones (I use Apple's standard earphones) to controlling the headphone/speaker volume only:
(Apple Mikey HID driver is what ControllerMate calls the controller associated with the buttons on the headphones)
The AppleScript for lowering the volume:
and for increasing it: