All pastes #45042 Raw Edit

/etc/asound.conf for multi-user alsa sound sharing

public text v1 · immutable
#45042 ·published 2006-03-09 16:35 UTC
rendered paste body
#Generated by system-config-soundcard, do not edit by hand
#SWCONF
#DEV 0
defaults.pcm.card 0 
defaults.pcm.device 0 
defaults.ctl.card 0 

#
# DMIX input device
#
pcm.!output {
  type dmix
  ipc_key 1235
  ipc_key_add_uid false   # let multiple users share
  ipc_perm 0666            # IPC permissions (octal, default 0600)
  slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 48000
  }
}

#
# DSNOOP output device
#
pcm.!input {
  type dsnoop
  ipc_key 1234
  slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    rate 48000
  }
}

#
# ASYM duplex device
#
pcm.!duplex {
  type asym
  playback.pcm "output"
  capture.pcm "input"
}

#
# Make the duplex device default
#
pcm.!default {
  type plug
  slave.pcm "duplex"
}

#
# OSS Compability
#
pcm.!dsp0 {
  type plug
  slave.pcm "duplex"
}

ctl.!mixer0 {
  type hw
  card 0
}