]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix --device bug
authorAndre <maan@p133.(none)>
Thu, 23 Feb 2006 17:29:45 +0000 (18:29 +0100)
committerAndre <maan@p133.(none)>
Thu, 23 Feb 2006 17:29:45 +0000 (18:29 +0100)
commite135f6e94c983e6abceed143a4536723f5c3e5b8
tree4bc71660aba2abb55e59a5cccc6e3cdb54441a31
parent0a2c77571770a4da28e069b3db0ac6949c91b467
Fix --device bug

Duuuh, the --device option never worked because "plug:swmix" was harcoded
in play.c instead of using the value from the configuration. Even worse,
the default in play.ggo was _also_ set to "plug:swmix". Replace that by
"plughw:0,0".

This patch also simplifies and optimizes play_pcm().

Anyway, software mixing is still recommended. Here's an aprropriate
/etc/asound.conf:

---------------------------------------------------- /etc/asound.conf
pcm.swmix {
type dmix
# any unique number here
ipc_key 313
        ipc_perm 0666

slave {
pcm "hw:0,0"
# these settings may require tweaking for different sound
# cards; this is for the Powerbook's built-in snd-powermac
# probably not required at all for well-behaved cards...
period_time 0
period_size 1024
buffer_size 8192
# mentioning rate fixes wrong speed/pitch in native ALSA stuff
# rate 44100
}
}

pcm.dsp0 {
type plug
slave.pcm "swmix"
}

ctl.mixer0 {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "swmix"
}
---------------------------------------------------------------------

a Use the
: Use a large input
buffer and For one, the
play.c
play.ggo