Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi:
That's what I wanna do. For example I've just issued 'mplayer foo.flac' and I do not want an error made by me while in the GUI to issue a loud sound notifying me the error and putting in risk my speakers. Any hint will be welcome.
I have found that MPlayer in Slackware will sometimes use OSS by default instead of alsa when run from the terminal. To make sure that MPlayer uses alsa open the: ~/.mplayer/config file and put this in it:
Code:
# use alsa
ao=alsa
Then restart MPlayer. It will then always use alsa when you play your music.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Quote:
Originally Posted by stf92
I do not want an error made by me while in the GUI to issue a loud sound notifying me the error and putting in risk my speakers. Any hint will be welcome.
A loud sound can be a feedback issue. Are you also set up to do recording of some sort?
In no way. There are all sorts of sounds output by GUI apps to signal some kink of event. Put it another way: there are all kinds of events that produce audible notifications. Examples: email notification, the KDE desktop environment crashed, some program finished his job, and so on and so on.
I have just looked into ~/.mplayer/config and saw it is empty. OK. I'll proceed to put 'ao=alsa' in it. But before I do this, I would very much wish to know what was mplayer using up to now, ALSA or OSS. How could I know?
The system-wide configuration file /etc/mplayer/mplayer.conf has all of its lines commented out. One of these lines is this:
Code:
#Specify default audio driver
#ao=oss
I think it indicates the default is presently oss, notwithstanding the fact that they are commente out. In the man page, what mplayer does when he encounters no -ao option in either the config files or the command line is a mistery. Not a word.
Set the volume of your amplifier to a low level and then adjust if the audio is too low. Always start at low level. If you are controlling the sound from alsamixer or GUI tool, then you will have to load those programs up all the time, so you may want to setup a dual screen to have easy access to the mixer controls. Just find an option in XFce that disables system sound events. You can do the same in other desktop or window environments.
In no way. There are all sorts of sounds output by GUI apps to signal some kink of event. Put it another way: there are all kinds of events that produce audible notifications. Examples: email notification, the KDE desktop environment crashed, some program finished his job, and so on and so on.
I have just looked into ~/.mplayer/config and saw it is empty. OK. I'll proceed to put 'ao=alsa' in it. But before I do this, I would very much wish to know what was mplayer using up to now, ALSA or OSS. How could I know?
The system-wide configuration file /etc/mplayer/mplayer.conf has all of its lines commented out but this
Code:
#Specify default audio driver
#ao=oss
seems to indicate the default is presently oss. In the man page, what mplayer does when he encounters no -ao option in either the config files or the command line is a mistery. Not a word.
You should first be running mplayer in command line, the output will clearly tell you which AO driver is being used. I've seem similar quirks when I had jackd installed on my system. My experience with it has been quite negative, to tell the truth.
Thanks Electro for replying. If Xfce, or for that matter any other DE should have such an option, it would be a great thing indeed. Up to now, I've seen that main Xfce apps (but he can run some KDE apps too) have the option. Perhaps I could go deeper and ask directly X to disable O.S. sound events. Any ways, I'll try to enter the Xfce forum, if there is one. Thanks again.
***************************
Sorry for the double post but I had missed Electro's answer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.