Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/virtual_oss
| Show All 19 Lines | |||||
| stop_cmd="${name}_stop" | stop_cmd="${name}_stop" | ||||
| status_cmd="${name}_status" | status_cmd="${name}_status" | ||||
| required_modules="cuse" | required_modules="cuse" | ||||
| configs= | configs= | ||||
| pidpath="/var/run/${name}" | pidpath="/var/run/${name}" | ||||
| default_unit=$(sysctl -n hw.snd.default_unit 2> /dev/null) | default_unit=$(sysctl -n hw.snd.default_unit 2> /dev/null) | ||||
| # Default configuration's control device. | |||||
| : "${virtual_oss_default_control_device:="vdsp.ctl"}" | |||||
| virtual_oss_default_args="\ | virtual_oss_default_args="\ | ||||
| -S \ | -S \ | ||||
| -C 2 \ | -C 2 \ | ||||
| -c 2 \ | -c 2 \ | ||||
| -r 48000 \ | -r 48000 \ | ||||
| -b 24 \ | -b 24 \ | ||||
| -s 8ms \ | -s 8ms \ | ||||
| -i 8 \ | -i 8 \ | ||||
| -f /dev/dsp${default_unit} \ | -f /dev/dsp${default_unit} \ | ||||
| -d dsp \ | -d dsp \ | ||||
| -t vdsp.ctl" | -t ${virtual_oss_default_control_device}" | ||||
| # Set to NO by default. Set it to "YES" to enable virtual_oss. | # Set to NO by default. Set it to "YES" to enable virtual_oss. | ||||
| : "${virtual_oss_enable:="NO"}" | : "${virtual_oss_enable:="NO"}" | ||||
| # List of configurations to use. Default is "dsp". | # List of configurations to use. Default is "dsp". | ||||
| : "${virtual_oss_configs:="dsp"}" | : "${virtual_oss_configs:="dsp"}" | ||||
| # Default (dsp) virtual_oss config. | # Default (dsp) virtual_oss config. | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||