LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 06-19-2010, 06:43 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch
Posts: 1,160

Rep: Reputation: Disabled
Question ALSA mono output - how to make?


Mint 9, Gnome. No PulseAudio, just ALSA. How do I switch audio output from stereo to mono and from mono to stereo again? Please don't tell me to install PulseAudio, I don't want to.
 
Old 06-19-2010, 11:50 PM   #2
keithieopia
Member
 
Registered: Feb 2005
Location: Maryland, USA
Distribution: Arch x86_64
Posts: 69

Rep: Reputation: 18
I don't blame you for not wanting PulseAudio!

Anyway create/edit ~/.asoundrc and place the following in it:
Quote:
pcm.card0 {
type hw
card 0
}
pcm.mono {
type route
slave.pcm card0
slave.channels 2
ttable.0.0 0.5
ttable.0.1 0.5
ttable.1.0 0.5
ttable.1.1 0.5
}
This creates a virtual soundcard (or the correct term is: "slave") named "mono". You can then play anything you want in mono by selecting it. For instance the following two commands will create very different output (the Noise.wav is probably in a different location on your machine):
Quote:
aplay -D mono /usr/share/sounds/alsa/Noise.wav
aplay -D default /usr/share/sounds/alsa/Noise.wav
If you want the default to be in mono, add the following in addition to what you added to .asoundrc before.
Quote:
pcm.!default {
type route
slave.pcm card0
slave.channels 2
ttable.0.0 0.5
ttable.0.1 0.5
ttable.1.0 0.5
ttable.1.1 0.5
}
NOTE: You'll probably have to restart ALSA or logout and back in again.
 
Old 07-21-2010, 03:08 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch
Posts: 1,160

Original Poster
Rep: Reputation: Disabled
Where should I choose the sound card? "gstreamer-properties"? But there's no "mono" soundcard...
 
  


Reply

Tags
alsa, audio, mono, pulseaudio, sound, stereo


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
alsa - averaging stereo to mono for speaker output bdjnk Linux - General 0 08-18-2009 02:38 PM
ALSA providing mono master output only for Audigy 2 yodes Linux - Hardware 0 03-09-2006 01:06 AM
ALSA went mono on me! AAnarchYY Linux - General 0 09-24-2004 12:12 AM
make an alsa program use OSS output ? qwijibow Linux - Software 9 03-09-2004 07:45 AM
mono xmms output majortool Linux - Software 1 10-23-2003 09:20 AM


All times are GMT -5. The time now is 02:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration