Shell Commands/SetMixer
From MorphOS Library
SetMixer - Sets audio input and output mixing
MIXER/K,INPUT/S, OUTPUT/S, NAME/K, VOLUME/K/N, VOLUMEADJUST/K/N, MUTE/K, SPDIF/K, S3DLEVEL/K/N
MIXER - Name of mixer device (i.e. 'efika' or 'pegasos') INPUT - Sets input values OUTPUT - Sets output values NAME - Name of channel, can be also number of channel (1...n, -1 for all channels) VOLUME - Sets volume to the value VOLUMEADJUST - Adjusts volume by the value MUTE - Mute 'on' or 'off' SPDIF - S3DLEVEL -
Examples:
Ram Disk:> SetMixer MUTE=on I2S SoftCodec: Channel "Volume" is muted. Ram Disk:> SetMixer MUTE=off I2S SoftCodec: Channel "Volume" is not muted. Ram Disk:> SetMixer OUTPUT VOLUMEADJUST=10 I2S SoftCodec: Volume level on channel "Volume" is set to 27. Ram Disk:> SetMixer OUTPUT VOLUMEADJUST=-10 I2S SoftCodec: Volume level on channel "Volume" is set to 16.