Forums > MaxMSP

Autoswitch Between Soundcard and Internal Speakers?

Jul 11 2013 | 2:44 am

Is there a way to switch automatically within Max between an external soundcard and the computers internal speakers?

So, as an example, the default is for a self generating patch to play over internal speakers but then when receiving a random bang, switches to outputting to an external soundcard (hooked up to larger speakers or a PA system).

Jul 11 2013 | 4:30 am

The adstatus object interfaces to the audio driver. On OSX it is possible to combine several hardware outputs in one aggregate device, which would be a more solid approach.

Jul 11 2013 | 4:39 am

Thanks for that. I’m not too clear on using multiple outputs in an aggregate. Once I’ve got the outputs setup, is it easy to switch using the adstatus object?

Jul 11 2013 | 4:50 am

I think the idea is to set up a multi-channel aggregate where (for instance) channels 1 & 2 are mapped to your internal speakers, and 3 & 4 to your audio interface. Then just use your favorite way to route audio to any of the four outputs.

Jul 11 2013 | 4:58 am

Thanks, I get that part… I’m not sure how you then tell adstatus to switch between the two options?

Jul 11 2013 | 5:12 am

YOu don’t have to tell adstatus to do anything. You set it once manually to the aggregate device and then route to the multiple outputs.

Jul 11 2013 | 5:15 am

Ahhh, I see what you mean. Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

Forums > MaxMSP