ccrma / chuck

ChucK Music Programming Language
http://chuck.stanford.edu/
GNU General Public License v2.0
799 stars 127 forks source link

List default audio device as audio device 0 in chuck --probe #448

Open Kizjkre opened 1 month ago

Kizjkre commented 1 month ago

Running chuck --probe returns something as follows:

[chuck]: [CoreAudio] driver found x audio device(s)...
[chuck]: 
[chuck]: ------( audio device: 1 )------
[chuck]: device name = "..."
[chuck]: probe [success]...
[chuck]: # output channels = x
[chuck]: # input channels  = x
[chuck]: # duplex Channels = x
[chuck]: default output = NO
[chuck]: default input = YES
[chuck]: natively supported data formats:
[chuck]:   32-bit float
[chuck]: supported sample rates:
[chuck]:   48000 Hz
[chuck]: ------( audio device: 2 )------
[chuck]: device name = "..."
[chuck]: probe [success]...
[chuck]: # output channels = x
[chuck]: # input channels  = x
[chuck]: # duplex Channels = x
[chuck]: default output = YES
[chuck]: default input = NO
[chuck]: natively supported data formats:
[chuck]:   32-bit float
[chuck]: supported sample rates:
[chuck]:   48000 Hz
[chuck]: 
[chuck]: ------( audio device: 3 )------
[chuck]: device name = "..."
[chuck]: probe [success]...
[chuck]: # output channels = x
[chuck]: # input channels  = x
[chuck]: # duplex Channels = x
[chuck]: default output = NO
[chuck]: default input = NO
[chuck]: natively supported data formats:
[chuck]:   32-bit float
[chuck]: supported sample rates:
[chuck]:   48000 Hz
[chuck]: 

Even though the index of the audio device corresponds with the argument N in chuck --out:<N>, it could cause confusion as to whether the first audio device should use --out:0 or --out:1. It could be better disambiguated if the default audio device (which is --out:0) was also listed.