maniu@securebrain.com:~# vi sound_mixer_gnome
apt-get install alsa-oss
apt-get install libesd-alsa0
vi ~/.asoundrc
#############################################
pcm.pcmmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0" # this must be your actual device
# hw:0,0 should work for most
period_size 1024 # must be power of 2
buffer_size 4096 # must be multiple of period_size
rate 44100 # most ALSA applications can set this
# however I got choppy sound with some
# applications if _not_ setting it
}
bindings {
0 0
1 1 # bind the first 2 stereo channels - usefull for AC97
}
}
pcm.duplex
{
type asym
playback.pcm "pcmmix"
# capture.pcm "hw"
# dsnoop allows multiple applications to record sound at the
# same time, but some (e.g. Audacity) have problems with it
capture.pcm "dsnoop"
}
# Ideally everything should go through dmix, but as dmix
# isn't mmap capable some bad written applications not
# checking for mmap capability may be broken
#pcm.!default {
# type plug
# slave.pcm "duplex"
#}
# Now these are for use with the "aoss" OSS->ALSA API wrapper.
#pcm.dsp {
# type plug
# slave.pcm "duplex"
#
#}
#pcm.dsp0 {
# type plug
# slave.pcm "duplex"
#}
###############################################################
# selezionare "alsa" su
gstreamer-properties
# controllare discordanza su /etc/asound.conf
vi /etc/esound/esd.conf
################################################################
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=
/etc/init.d/alsa-utils restart
speaker-test