LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2006, 08:37 PM   #1
shamgar03
Member
 
Registered: Jul 2004
Distribution: Gentoo, CentOS
Posts: 92

Rep: Reputation: 15
Reverse left and right audio channels


Does anyone know of a way to reverse my left and right audio channels? I bought some speakers and the cord is pretty short (won't reach my computer because the main cord comes from the right speaker). I know in that OTHER OS you can reverse the left and right channels on alot of sound cards, so I was just wondering if I could save a few bucks and do this instead of buying a new cord. I am running gentoo and have kde/kmixer. Thanks in advance
 
Old 08-22-2006, 10:58 PM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
Assuming that your L speaker is close to the computer but the R speaker (with the cord) is far from the computer, why not switch speaker positions, and put the L speaker on the right, and the R speaker on the left, so that it (and the cord) are closer to the computer? That would give you the exact same result, and it costs nothing
 
Old 08-23-2006, 09:36 AM   #3
myates1980
Member
 
Registered: Jul 2006
Location: Lancaster, PA
Distribution: Slackware, FreeBSD,
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by J.W.
why not switch speaker positions, and put the L speaker on the right, and the R speaker on the left, so that it (and the cord) are closer to the computer? That would give you the exact same result, and it costs nothing
I belive that is what he HAS done but now the stereo is in reverse i.e. the left speaker is on the right and the right speaker is on the left. I suggest just putting them back in the correct order and buying a 1/8 inch stero plug female-male extension cord...$2.49 at my Radio Shack. It'll solve a lot of hassle trying to figure out how to do it with the software and an 1/8th inch extension can be very useful down the road.
 
Old 08-23-2006, 09:46 AM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
found this on the alsa wiki
Quote:
Add this to your /etc/asound.conf...

Code:
pcm.swapped {
    type route
    slave.pcm "hw:0"
    ttable.0.1 1
    ttable.1.0 1
}


Then instruct your program to play to the ALSA PCM device named "swapped".
 
Old 08-23-2006, 12:41 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
Quote:
Originally Posted by myates1980
I belive that is what he HAS done but now the stereo is in reverse i.e. the left speaker is on the right and the right speaker is on the left.
Well, maybe, but does this even matter? Personally, I wouldn't consider the arrangement to be "in reverse". Example: suppose you're at a nightclub, and you and your friends sit down at a table. If you sit on one side of the table, the L channel will be to your left, but if you sit on the other side of the table, the L channel will be on your right. To me, this makes no difference at all
 
Old 08-23-2006, 12:54 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by J.W.
Well, maybe, but does this even matter? Personally, I wouldn't consider the arrangement to be "in reverse". Example: suppose you're at a nightclub, and you and your friends sit down at a table. If you sit on one side of the table, the L channel will be to your left, but if you sit on the other side of the table, the L channel will be on your right. To me, this makes no difference at all
But in other cases, for example, watching a movie or playing a game, you want to hear the person from the right-hand-side when s/he appears on the right-hand-side of the screen, etc., etc. (I have not yet tried to watch a movie while my back is facing the screen.
 
Old 08-23-2006, 08:37 PM   #7
shamgar03
Member
 
Registered: Jul 2004
Distribution: Gentoo, CentOS
Posts: 92

Original Poster
Rep: Reputation: 15
osor ftw

Quote:
Originally Posted by osor
But in other cases, for example, watching a movie or playing a game, you want to hear the person from the right-hand-side when s/he appears on the right-hand-side of the screen, etc., etc. (I have not yet tried to watch a movie while my back is facing the screen.
Yes, I did in fact already have my speakers swapped and wanted to reverse the channels so that they would be unswapped. Having left and right speakers isn't important for music but it is for movies and (probobly) TV, which is what I am planning on using this for. The alsa wiki trick didn't work, I am thinking that maybe we have to edit alsa.state now? Any ideas? I may just go buy an extender but it might be nice for other's to have the answer to this.

Last edited by shamgar03; 08-23-2006 at 08:45 PM.
 
Old 08-23-2006, 08:46 PM   #8
Lsatenstein
Member
 
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora Core 6 XEN
Posts: 281
Blog Entries: 1

Rep: Reputation: 49
Just purchase two small extension cables. You can also make a small switch box, that with the flip of a switch, (double pole double throw) flips the audio jack signals to the amplifiers.
 
Old 08-23-2006, 09:32 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
Quote:
Originally Posted by osor
But in other cases, for example, watching a movie or playing a game, you want to hear the person from the right-hand-side when s/he appears on the right-hand-side of the screen, etc., etc. (I have not yet tried to watch a movie while my back is facing the screen.
Excellent point, I was only thinking of firing up a music CD.

Not to beat a dead horse but one other option to consider would be to relocate the PC itself, so that the cord does reach, but that may have already been considered and rejected
 
Old 03-24-2013, 02:42 PM   #10
AlFrontana
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Late

Nobody answer this question...

in /etc/pulse/deamon.conf

; default-sample-channels = 2
; default-channel-map = front-left,front-right

to

default-sample-channels = 2
default-channel-map = front-right,front-left

No cables, no funny things.
Good luck

Last edited by AlFrontana; 03-24-2013 at 02:43 PM. Reason: Error
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
control 6 audio channels seperately DeNayGo Linux - Software 1 02-26-2006 12:23 AM
Left/right audio balance klebs89 Linux - Newbie 2 02-25-2006 08:19 AM
6 channels audio AKded Linux - Hardware 0 07-29-2004 12:32 PM
6-channel C-Media 9739 on-board audio chip: only 2 channels playing zidour Linux - Hardware 9 05-23-2004 09:14 PM
SOUND PROBLEM: Inverted left/right channels moving_target Linux - General 0 06-30-2002 08:38 PM


All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration