View previous topic :: View next topic |
Author |
Message |
jiaxi n00b
Joined: 25 Sep 2012 Posts: 30
|
Posted: Sat Apr 20, 2013 8:12 am Post subject: 6 channels to 2 channels issue[SOLVED] |
|
|
HI,
My sound card only support 2 channels.But I cannot hear dialogue only background sound when i play 6 channels music of wav.
I can hear dialogue and background in windows.
my commond is as fellow and no asound.conf in my system.
aplay 6channels.wav
Last edited by jiaxi on Thu May 02, 2013 2:26 am; edited 1 time in total |
|
Back to top |
|
|
simon_irl Guru
Joined: 07 Oct 2004 Posts: 403 Location: New Zealand
|
Posted: Sun Apr 21, 2013 4:43 am Post subject: |
|
|
doesn't Code: | aplay -c 2 6channels.wav | downmix the 6 channels to 2 so that you can hear all of them through your stereo setup? if not, mplayer can downmix properly, so play it via Code: | mplayer -channels 2 6channels.wav |
|
|
Back to top |
|
|
s_bernstein Apprentice
Joined: 11 Mar 2006 Posts: 172 Location: Bremen, Germany
|
Posted: Sun Apr 21, 2013 7:01 am Post subject: |
|
|
I suppose you use gstreamer as backend. If so, send a *big* thank you to the guys at gstreamer because they removed the resampling feature. They changed it in order to be compatible to pulseaudio, which noone really needs but which needs the unchanged input to resample by itself. So, either you switch over to pulseaudio, or you stop using gstreamer backend. VLCplayer works for me. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Apr 21, 2013 7:46 am Post subject: |
|
|
s_bernstein wrote: | either you switch over to pulseaudio, or you stop using gstreamer backend. |
Why? ALSA is perfectly capable of resampling, by itself, e.g. "rate 48000".
jiaxi, see "pcm.downmix_51to20" in the config in my sig. _________________ Improve your font rendering and ALSA sound |
|
Back to top |
|
|
jiaxi n00b
Joined: 25 Sep 2012 Posts: 30
|
Posted: Mon Apr 22, 2013 11:43 am Post subject: |
|
|
PaulBredbury wrote: | s_bernstein wrote: | either you switch over to pulseaudio, or you stop using gstreamer backend. |
Why? ALSA is perfectly capable of resampling, by itself, e.g. "rate 48000".
jiaxi, see "pcm.downmix_51to20" in the config in my sig. |
I use the config of pcm.downmix_51to20,but i also here two channel sound only.
This is asound.conf:
pcm.!default {
type plug
slave.pcm "routed"
}
pcm.routed {
type route
slave {
pcm "hw:0,0"
}
ttable.0.0 0.33
ttable.1.1 0.33
ttable.2.0 0.33
ttable.3.1 0.33
ttable.4.0 0.16
ttable.4.1 0.16
ttable.5.0 0.16
ttable.5.1 0.16
} |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Apr 22, 2013 11:50 am Post subject: |
|
|
You have it backwards. Don't go through pcm.default first, because pcm.default is only 2 speakers, so will chop off the other speakers, before their audio data has been processed.
Notice my (revised) example:
Code: | pcm.downmix_51to20 {
type route
slave.pcm "surround20" |
So that goes through downmix_51to20 before 2-speaker output.
To test it:
Code: | speaker-test -c 6 -D downmix_51to20 -t wav |
It doesn't mix properly if I use slave.pcm "dmixed" - has to be "plug:dmixed"
Anyway, "default" or "surround20" will work also - I think "surround20" is clearer. |
|
Back to top |
|
|
jiaxi n00b
Joined: 25 Sep 2012 Posts: 30
|
Posted: Thu May 02, 2013 2:26 am Post subject: |
|
|
PaulBredbury wrote: | You have it backwards. Don't go through pcm.default first, because pcm.default is only 2 speakers, so will chop off the other speakers, before their audio data has been processed.
Notice my (revised) example:
Code: | pcm.downmix_51to20 {
type route
slave.pcm "surround20" |
So that goes through downmix_51to20 before 2-speaker output.
To test it:
Code: | speaker-test -c 6 -D downmix_51to20 -t wav |
It doesn't mix properly if I use slave.pcm "dmixed" - has to be "plug:dmixed"
Anyway, "default" or "surround20" will work also - I think "surround20" is clearer. |
Thanks. It is ok. |
|
Back to top |
|
|
|