hanfgeist
20.02.09, 18:30
Ich versuche seit einiger Zeit mit ALSA einen Stereo Sound über 6 Känle Wiederzugeben. Ich Bastel schon eine ganze Weile an ALSA herum und bekomme es einfach nicht hin.:confused:
Mit "speaker-test -c6 -twav -D surround51" werden alle Kanäle richtig angesprochen.
Zu meinem System:
OpenSUSE 11.1, Meine Sounkarte ist "CMI8738/C3DX" und auch richtig erkannt.
Das ist meine .asoundrc, an der ich schon länger herum schraube.:eek:
pcm.a52encode {
type a52
}
#pcm.lowpass {
# type ladspa
#
# slave.pcm ...
# path "/usr/lib/ladspa"
# plugins [ {
# label lpf
# input {
# controls [ 50 ]
# }
# } ]
#}
# move channel 0 to channel 2
pcm.move0to2 {
type route
slave.pcm 3to6
slave.channels 3
ttable.0.2 1
}
# 3to6 has 3 input and 6 output channels
# the stereo signal is on ch. 0 and 1
# ch.0 is copied to 0 and 2 (front and rear)
# ch.1 is copied to 1 and 3 (front and rear)
# ch.0 and ch.1 will is mixed to ch.4 (center)
# ch.2 is routed to ch.5 (subwoofer)
pcm.3to6 {
type route
slave.pcm "surround51"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.2.5 1
}
#pcm.ice2_21cutoffsub {
# type ladspa
#
# slave.pcm ice_plug
# path "/usr/lib/ladspa"
# plugins {
# 0 {
# label lp4pole_fcrcia_oa
# policy none
# input.bindings.2 "Input";
# output.bindings.2 "Output";
# input {
# controls [ 300 0 ]
# }
# }
# 1 {
# label delay_0.01s
# input.bindings.0 "Input";
# output.bindings.0 "Output";
# input {
# controls [ 0 1 ]
# }
# }
# }
#}
#pcm.ch40dup {
# type route
#
# slave.pcm surround40
# slave.channels 4
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
#}
#pcm.ch51dup {
# type route
#
# slave.pcm surround51
# slave.channels 6
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
# ttable.0.4 0.5
# ttable.1.4 0.5
#}
#pcm.stereoupmix {
# type route
#
# slave.pcm "a52encode"
# slave.channels 6
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
# ttable.0.4 0.5
# ttable.1.4 0.5
# ttable.0.5 0.5
# ttable.1.5 0.5
#}
#pcm.stereoupmix {
# type upmix
# slave.pcm "a52encode"
# channels 6
#}
#pcm.!default {
# type pulse
#}
#ctl.!default {
# type pulse
#}
#pcm.pulseaudio a52encode
#ctl.pulseaudio {
# type hw
# card 0
#}
Ich hoffe, das mir jemand helfen kann und bendanke mich schon mal im Vorraus.
Mit "speaker-test -c6 -twav -D surround51" werden alle Kanäle richtig angesprochen.
Zu meinem System:
OpenSUSE 11.1, Meine Sounkarte ist "CMI8738/C3DX" und auch richtig erkannt.
Das ist meine .asoundrc, an der ich schon länger herum schraube.:eek:
pcm.a52encode {
type a52
}
#pcm.lowpass {
# type ladspa
#
# slave.pcm ...
# path "/usr/lib/ladspa"
# plugins [ {
# label lpf
# input {
# controls [ 50 ]
# }
# } ]
#}
# move channel 0 to channel 2
pcm.move0to2 {
type route
slave.pcm 3to6
slave.channels 3
ttable.0.2 1
}
# 3to6 has 3 input and 6 output channels
# the stereo signal is on ch. 0 and 1
# ch.0 is copied to 0 and 2 (front and rear)
# ch.1 is copied to 1 and 3 (front and rear)
# ch.0 and ch.1 will is mixed to ch.4 (center)
# ch.2 is routed to ch.5 (subwoofer)
pcm.3to6 {
type route
slave.pcm "surround51"
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
ttable.2.5 1
}
#pcm.ice2_21cutoffsub {
# type ladspa
#
# slave.pcm ice_plug
# path "/usr/lib/ladspa"
# plugins {
# 0 {
# label lp4pole_fcrcia_oa
# policy none
# input.bindings.2 "Input";
# output.bindings.2 "Output";
# input {
# controls [ 300 0 ]
# }
# }
# 1 {
# label delay_0.01s
# input.bindings.0 "Input";
# output.bindings.0 "Output";
# input {
# controls [ 0 1 ]
# }
# }
# }
#}
#pcm.ch40dup {
# type route
#
# slave.pcm surround40
# slave.channels 4
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
#}
#pcm.ch51dup {
# type route
#
# slave.pcm surround51
# slave.channels 6
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
# ttable.0.4 0.5
# ttable.1.4 0.5
#}
#pcm.stereoupmix {
# type route
#
# slave.pcm "a52encode"
# slave.channels 6
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
# ttable.0.4 0.5
# ttable.1.4 0.5
# ttable.0.5 0.5
# ttable.1.5 0.5
#}
#pcm.stereoupmix {
# type upmix
# slave.pcm "a52encode"
# channels 6
#}
#pcm.!default {
# type pulse
#}
#ctl.!default {
# type pulse
#}
#pcm.pulseaudio a52encode
#ctl.pulseaudio {
# type hw
# card 0
#}
Ich hoffe, das mir jemand helfen kann und bendanke mich schon mal im Vorraus.