LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2004, 09:06 AM   #1
delta_simon
Member
 
Registered: Sep 2004
Location: Jakobstad Finland
Distribution: Slackware 10
Posts: 42

Rep: Reputation: 15
Mplayer -ao ?


How can I edit the mplayer config so that the program always runs
mplayer -ao alsa:device=hw#0.1 ?
 
Old 12-26-2004, 09:15 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Mplayer supports a config file, when you launch it you'll notice where it looks for it, but generally speaking you can have:
/etc/mplayer.conf

And the line for that would be:
ao = alsa:device=hw0.1

Cool
 
Old 12-27-2004, 05:08 AM   #3
delta_simon
Member
 
Registered: Sep 2004
Location: Jakobstad Finland
Distribution: Slackware 10
Posts: 42

Original Poster
Rep: Reputation: 15
When I insert the line
ao = alsa:device=hw0.x to the mplayer config no sound appear.

I must instead use ao = alsa:device=default but hw0.0 is set to be the default :S
 
Old 12-27-2004, 05:44 AM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
You can put an alias in your .bashrc file like this:

alias mplayer="mplayer -ao alsa:device=hw#0,1"

Close that terminal, open another one and try
 
  


Reply



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
using mplayer with .asx without -playlist? Would be useful for mplayer plug-in pierrethibault Linux - Software 1 02-18-2005 08:12 AM
No sound in mplayer or mplayer firefox plugin case1984 Linux - Newbie 1 01-21-2005 12:58 AM
How to install mplayer gui after installing mplayer kaega2 Linux - Software 5 10-07-2003 10:44 AM
More mplayer issues...no /.mplayer folder?! lt1derful Linux - Software 3 08-03-2003 09:09 PM
mplayer is cool ... mplayer plug-in is even cooler..! linuxlah Linux - General 4 07-16-2003 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:57 AM.

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
Open Source Consulting | Domain Registration