LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-01-2004, 11:52 PM   #1
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
program volume rather than system volume


One thing that really annoys me about linux media players is that they adjust the system volume and not their own volume. For instence, I may want to play a movie in mplayer at very low volume while I continue to listen to music, etc at normal volume. Or I might even want to play two movies at the same time, one on mute and the other at normal volume. In windows when I adjust the volume in a program, it's only for that program. Is there any way to do that in linux?
 
Old 11-02-2004, 01:21 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
That would be program specific in Linux or Windows. I have not really seen what your talking about. I have seen programs that will adjust some volume control other than the master volume like the wave volume. That would also lower the volume for any other wave playing.
 
Old 11-02-2004, 04:53 PM   #3
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Winamp on PC can turn down it's volume, while you could be playing MP3's in media player simutaniously and see no change in volume in media player.

That is what the poster is talking about.

I believe that this is part of the programmers decision on Linux and Windows.

Programs that have their own volume, basically have their own 'buffer' for the sound, and they apply a noise filter to it to lower or increase the volume sent to the system, although the system could be at full blast. Basically controlling how loud the volume is before it's sent to the system.

Not all programmers choose to do this, because that's more code for them, having to code their own buffer, rather than use API straight to the system. Perhaps no linux applications do it because linux programmers are lazier? I don't know. But it is possible in linux.

Q: Is there any way to do that in linux?
A: Yes, if you want to get the source to application you want to do it to, make modifications to it's source code adding such a buffer, and compile it. Please start a website with your mods to the code so others can benfit too, if you decide to do this!

Last edited by jon_k; 11-02-2004 at 04:56 PM.
 
Old 11-02-2004, 11:18 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Actually Winamp adjusts the wave volume on my Windows system. The EQ Preamp will adjust the sound output without changing the volumes in Winamp just as Xmms does in Linux.

Last edited by DavidPhillips; 11-02-2004 at 11:24 PM.
 
Old 11-03-2004, 03:23 AM   #5
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Original Poster
Rep: Reputation: 30
Every windows program that I can remember using changes only the program's sound. Will, with the exception of windows media player 9. But WMP6.4, winamp, powerdvd, pretty much everything else is volume independant, so I assumed that it was a difference in the windows volume API. Didn't know the programmers had to do it themselves. Oh well. Maybe I'll look into adding that feature to a couple linux apps if I get the time. Thanks guys.
 
Old 11-03-2004, 04:03 AM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i don't know that much about this but the answer if not now in the future is the jack sound server.
rhythmbox and alsaplayer have their own volume
and there is a jack server plugin for xmms so one would assume it can be controlled with jackmix or jackEQ
and the latest mplayer compiles with jack audio output support also
beyond jack aware apps (like hopefully they will all be in the future)
if you can isolate the output as a capture then that can be controlled by jack then sent to out i think.
before alsa and dmix and fast and multiple cpus there was no sound polling in linux so two sound streams got all screwed up anyway
so yes i agree with you legacy apps should be fixed
and they are being
 
Old 11-05-2004, 09:57 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
It does appear that the behavior is different in WinMe than it is in WinXP.

Or maybe it the driver.

Last edited by DavidPhillips; 11-05-2004 at 10:00 PM.
 
  


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
Program to control volume from console? enemorales Linux - Software 2 02-17-2005 12:28 PM
Why does mplayer adjust system volume? wpg9210 Linux - Software 0 05-18-2004 11:25 AM
Adjusting how much volume jumps with volume keys vrillusions Linux - Laptop and Netbook 2 10-17-2003 09:11 PM
system volume w/ fluxbox infamous41md Linux - Newbie 1 06-06-2003 03:14 PM
how do i change system volume? ShawnD Linux - General 3 09-01-2002 12:24 AM

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

All times are GMT -5. The time now is 01:36 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
Open Source Consulting | Domain Registration