Changeset View
Changeset View
Standalone View
Standalone View
lib/libmixer/mixer.3
Show All 32 Lines | |||||
.Nm mixer_add_ctl , | .Nm mixer_add_ctl , | ||||
.Nm mixer_add_ctl_s , | .Nm mixer_add_ctl_s , | ||||
.Nm mixer_remove_ctl , | .Nm mixer_remove_ctl , | ||||
.Nm mixer_get_ctl , | .Nm mixer_get_ctl , | ||||
.Nm mixer_get_ctl_byname , | .Nm mixer_get_ctl_byname , | ||||
.Nm mixer_set_vol , | .Nm mixer_set_vol , | ||||
.Nm mixer_set_mute , | .Nm mixer_set_mute , | ||||
.Nm mixer_mod_recsrc , | .Nm mixer_mod_recsrc , | ||||
.Nm mixer_get_dunit , | .Nm mixer_get_default_unit , | ||||
.Nm mixer_set_dunit , | .Nm mixer_set_default_unit , | ||||
.Nm mixer_get_mode, | .Nm mixer_get_mode, | ||||
.Nm mixer_get_nmixers , | .Nm mixer_get_nmixers , | ||||
.Nm MIX_ISDEV , | .Nm MIX_ISDEV , | ||||
.Nm MIX_ISMUTE , | .Nm MIX_ISMUTE , | ||||
.Nm MIX_ISREC , | .Nm MIX_ISREC , | ||||
.Nm MIX_ISRECSRC , | .Nm MIX_ISRECSRC , | ||||
.Nm MIX_VOLNORM , | .Nm MIX_VOLNORM , | ||||
.Nm MIX_VOLDENORM | .Nm MIX_VOLDENORM | ||||
Show All 24 Lines | |||||
.Fn mixer_get_ctl_byname "struct mix_dev *d" "const char *name" | .Fn mixer_get_ctl_byname "struct mix_dev *d" "const char *name" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_set_vol "struct mixer *m" "mix_volume_t vol" | .Fn mixer_set_vol "struct mixer *m" "mix_volume_t vol" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_set_mute "struct mixer *m" "int opt" | .Fn mixer_set_mute "struct mixer *m" "int opt" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_mod_recsrc "struct mixer *m" "int opt" | .Fn mixer_mod_recsrc "struct mixer *m" "int opt" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_get_dunit "void" | .Fn mixer_get_default_unit "void" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_set_dunit "struct mixer *m" "int unit" | .Fn mixer_set_default_unit "struct mixer *m" "int unit" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_get_mode "int unit" | .Fn mixer_get_mode "int unit" | ||||
.Ft int | .Ft int | ||||
.Fn mixer_get_nmixers "void" | .Fn mixer_get_nmixers "void" | ||||
.Ft int | .Ft int | ||||
.Fn MIX_ISDEV "struct mixer *m" "int devno" | .Fn MIX_ISDEV "struct mixer *m" "int devno" | ||||
.Ft int | .Ft int | ||||
.Fn MIX_ISMUTE "struct mixer *m" "int devno" | .Fn MIX_ISMUTE "struct mixer *m" "int devno" | ||||
▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | |||||
Remove device from the recording sources. | Remove device from the recording sources. | ||||
.It Dv MIX_SETRECSRC | .It Dv MIX_SETRECSRC | ||||
Set device as the only recording source. | Set device as the only recording source. | ||||
.It Dv MIX_TOGGLERECSRC | .It Dv MIX_TOGGLERECSRC | ||||
Toggle device from the recording sources. | Toggle device from the recording sources. | ||||
.El | .El | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn mixer_get_dunit | .Fn mixer_get_default_unit | ||||
and | and | ||||
.Fn mixer_set_dunit | .Fn mixer_set_default_unit | ||||
functions get and set the default audio card in the system. Although this is | functions get and set the default audio card in the system. Although this is | ||||
not really a mixer feature, it's useful to have instead of having to use | not really a mixer feature, it's useful to have instead of having to use | ||||
the | the | ||||
.Xr sysctl 3 | .Xr sysctl 3 | ||||
controls. | controls. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn mixer_get_mode | .Fn mixer_get_mode | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
function returns the newly created handle on success and NULL on failure. | function returns the newly created handle on success and NULL on failure. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn mixer_close , | .Fn mixer_close , | ||||
.Fn mixer_set_vol , | .Fn mixer_set_vol , | ||||
.Fn mixer_set_mute , | .Fn mixer_set_mute , | ||||
.Fn mixer_mod_recsrc , | .Fn mixer_mod_recsrc , | ||||
.Fn mixer_get_dunut , | .Fn mixer_get_dunut , | ||||
.Fn mixer_set_dunit | .Fn mixer_set_default_unit | ||||
and | and | ||||
.Fn mixer_get_nmixers | .Fn mixer_get_nmixers | ||||
functions return 0 or positive values on success and -1 on failure. | functions return 0 or positive values on success and -1 on failure. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn mixer_get_dev | .Fn mixer_get_dev | ||||
and | and | ||||
.Fn mixer_get_dev_byname | .Fn mixer_get_dev_byname | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |