Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
6 channels to 2 channels issue[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Sat Apr 20, 2013 8:12 am    Post subject: 6 channels to 2 channels issue[SOLVED] Reply with quote

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
View user's profile Send private message
simon_irl
Guru
Guru


Joined: 07 Oct 2004
Posts: 403
Location: New Zealand

PostPosted: Sun Apr 21, 2013 4:43 am    Post subject: Reply with quote

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
View user's profile Send private message
s_bernstein
Apprentice
Apprentice


Joined: 11 Mar 2006
Posts: 172
Location: Bremen, Germany

PostPosted: Sun Apr 21, 2013 7:01 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Apr 21, 2013 7:46 am    Post subject: Reply with quote

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
View user's profile Send private message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Mon Apr 22, 2013 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Apr 22, 2013 11:50 am    Post subject: Reply with quote

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" 8O

Anyway, "default" or "surround20" will work also - I think "surround20" is clearer.
Back to top
View user's profile Send private message
jiaxi
n00b
n00b


Joined: 25 Sep 2012
Posts: 30

PostPosted: Thu May 02, 2013 2:26 am    Post subject: Reply with quote

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" 8O

Anyway, "default" or "surround20" will work also - I think "surround20" is clearer.

Thanks. It is ok.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum