2 inputs, 0 outputs (default): sound with two inputs or audiowrite with filename 'audio.wav'. Second input is sample frequency. If negative: audiowrite; if positive: sound. T corresponds to 44100, F to -44100
3 inputs, 0 outputs (secondary default): third input indicates whether to auto-scale (T) or not (F); or it defines 2-number vector as allowed by soundsc; or defines filename for audiowrite. Second input is still sample frequency (and negative values probably make no sense here)
More than 3 inputs, 0 outputs: audiowrite with filename as third input, and parameter-value pairs as furthe…