How can I disable all audio output from my OSX machine when the screen is locked
I figured out you can do this with the "Do not Disturb" feature in System Preferences -> Notifications. I actually had it turned on, but had the checkbox with "From XXX to YYY" time checked. I unchecked that, and made sure the "When the display is sleeping" was checked, and that seems to do it!