Электростальский форум
Hi-Tech => Компьютеры, периферия, мультимедиа и ПО => Тема начата: santic от 19.09.10, 17:00:50
-
Привет всем, есть карточка - Ensoniq AudioPCI с чипом SigmaTel STAC9708. Alsa подхватила карту и появились настройки -
(http://static.itmages.ru/i/10/0918/h_1284831799_9213e23188.png) (http://itmages.ru/image/view/58745/9213e231)
Но как ни крути и не включай/выключай - звучат колонки, которые на основном источнике или сразу две пары колонок, если врубить в alsamixer настройку - AC97 2ch->4ch Copy . Тест - speaker-test -c 4 показывает, что канал rear не звучит, хотя в настройках он есть. Вот таки дела. Покрутив ползунки, я пришёл к выводу: надо второй источник сделать каналом rear с помощью ./asoundrc, но т.к. я не вкурю как это сделать, то я прошу помощи у вас. Заранее спасибо! Алсо,
Splitting front and rear outputs
I had a lot of trouble first figuring out how I could split front and rear channels into two devices that could be used independently. The following .asoundrc file is what I came up with. It can be used with 'mplayer', for example, as follows:
mplayer -ao alsa1x:frontx file1.avi
mplayer -ao alsa1x:rearx file2.mp3
Enjoy...
pcm.dshare {
type dmix
ipc_key 2048
slave {
pcm "hw:0"
rate 44100
period_time 0
period_size 1024
buffer_size 8192
channels 4
}
bindings {
0 0
1 1
2 2
3 3
}
}
pcm.frontx {
type plug
slave {
pcm "dshare"
channels 4
}
ttable.0.0 1
ttable.1.1 1
}
pcm.rearx {
type plug
slave {
pcm "dshare"
channels 4
}
ttable.0.2 1
ttable.1.3 1
}
Note, for ttable you might use fractions but then you cannot use LC_NUMERIC locales that use characters other than '.' as decimal separator. Actually this is a bug and has already been fixed in versions higher than 1.0.8.
С сайта алсы, но как это точно реализовать непонятно =\ http://alsa.opensrc.org/index.php/.asoundrc
-
Проблема почти решена...надо как-то заставить подхватить asoundrc :D
-
Тема закрыта. Надо добавлять вот что в asoundrc:
defaults.pcm.card 0
pcm.!default {
type plug
slave.pcm "surround40"
slave.channels 4
route_policy duplicate
}