LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-02-2004, 12:52 AM   #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, 02:21 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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, 05: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 05:56 PM.
 
Old 11-03-2004, 12:18 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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-03-2004 at 12:24 AM.
 
Old 11-03-2004, 04: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, 05:03 AM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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, 10:57 PM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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 11:00 PM.
 
  


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


All times are GMT -5. The time now is 08:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration