On 14/02/2008, at 1.29, potax flan wrote:
is there a way to send a semicolon message to pd that tells the
system to use a specific sound output device and number of output
channels?
Yes. But not an "official" supported way.
it's not too hard to go to the menu and select it from there, but
it'd be so handy this way.
The Pd GUI and pd work by sending messages back and forth. You can
listen to them by making a patch like
[r pd] | [print pd-msg]
Now open the audio pref., make your changes and see what's printed in
the console. Something like 'audio-dialog 0 0 0 0 2 0 0 0 0 0 0 0 2
0 0 0 44100 50 0'. That is then the message you'd want to send to pd.
Like
[audio-dialog 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 44100 50 0( | [s pd]
If you save the preferences (fx by sending [save-preferences( to pd)
it will be stored in the preference file for next time you run Pd.