Changeset View
Changeset View
Standalone View
Standalone View
lib/libmixer/mixer.c
Show First 20 Lines • Show All 449 Lines • ▼ Show 20 Lines | mixer_set_dunit(struct mixer *m, int unit) | ||||
/* XXX: how will other mixers get updated? */ | /* XXX: how will other mixers get updated? */ | ||||
m->f_default = m->unit == unit; | m->f_default = m->unit == unit; | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* Get sound device mode (none, play, rec, play+rec). Userland programs can | * Get sound device mode (none, play, rec, play+rec). Userland programs can | ||||
* use the MIX_STATUS_* flags to determine the mode of the device. | * use the MIX_MODE_* flags to determine the mode of the device. | ||||
*/ | */ | ||||
int | int | ||||
mixer_get_mode(int unit) | mixer_get_mode(int unit) | ||||
{ | { | ||||
char buf[64]; | char buf[64]; | ||||
size_t size; | size_t size; | ||||
unsigned int mode; | unsigned int mode; | ||||
Show All 31 Lines |