Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Volume Limiter
« previous next »
  • Print
Pages: [1] 2

Author Topic: Volume Limiter  (Read 14497 times)

Offline terrence1019

  • Member
  • *
  • Posts: 128
Volume Limiter
« on: May 17, 2008, 03:42:22 AM »
If know there has been talks of inserting a volume limiting function (a la iPod) and that the prospect of inserting it into SVN code is low.

What if I were to make a volume limiting plugin? Would that be more preferably accepted?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Volume Limiter
« Reply #1 on: May 17, 2008, 03:57:11 AM »
I'm not sure I understand at all what you're proposing. How would it work? How would it offer any benefit over simply changing the volume? Or setting a pre-amp to limit the volume? Or replaygaining your files to limit maximum effective loudness?
Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Volume Limiter
« Reply #2 on: May 17, 2008, 05:10:08 AM »
yes, it should be possible as a plugin as well, but since you can't do that much when the plugin is running it would not be so nice.

Would you want your limiter also to raise the volume when the music gets too quiet, or only to limit the volume during loud parts?
Logged

Offline dreamlayers

  • Developer
  • Member
  • *
  • Posts: 426
  • Boris Gjenero
    • My Blog
Re: Volume Limiter
« Reply #3 on: May 17, 2008, 12:01:16 PM »
Quote from: Llorean on May 17, 2008, 03:57:11 AM
I'm not sure I understand at all what you're proposing. How would it work? How would it offer any benefit over simply changing the volume? Or setting a pre-amp to limit the volume? Or replaygaining your files to limit maximum effective loudness?

Don't those scale the digital value, effectively decreasing the number of DAC bits in use, increasing distortion from that and decreasing signal to noise ratio?

I think only the volume actually scales the analog output of the DAC, allowing the full range of the DAC to be used. 

I think a volume limit option might help avoid times when while turning up the volume one overshoots into uncomfortable volume and it could help avoid volume levels which result in distortion.
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Volume Limiter
« Reply #4 on: May 17, 2008, 02:45:36 PM »
On the ipod OF, it's just a limit on how loud you can set it. So say you don't want it to go over -10db, you set it at that and the volume would never go over that. I never really understaood the point of it though.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline terrence1019

  • Member
  • *
  • Posts: 128
Re: Volume Limiter
« Reply #5 on: May 18, 2008, 01:13:32 AM »
Quote from: markun on May 17, 2008, 05:10:08 AM
yes, it should be possible as a plugin as well, but since you can't do that much when the plugin is running it would not be so nice.

Would you want your limiter also to raise the volume when the music gets too quiet, or only to limit the volume during loud parts?

Simply, it just limits the volume to a certain maximum limit.

Example: setting -3 db as a limit

I want it to be like iPod's volume control limit
Logged

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Volume Limiter
« Reply #6 on: May 18, 2008, 05:21:53 AM »
So you want to limit the value of the volume setting, not the actual volume itself (which also depends on the audio file being played) ? Can you explain In which cases that would be useful?

Also, I don't see how that could be done with a plugin...
Logged

Offline terrence1019

  • Member
  • *
  • Posts: 128
Re: Volume Limiter
« Reply #7 on: May 18, 2008, 11:10:10 AM »
Quote from: markun on May 18, 2008, 05:21:53 AM
So you want to limit the value of the volume setting, not the actual volume itself (which also depends on the audio file being played) ? Can you explain In which cases that would be useful?

Also, I don't see how that could be done with a plugin...

It would be useful for those who always wanted this as a setting.

But seeing it can't be done as a plugin, I'll abandon the project.
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Volume Limiter
« Reply #8 on: May 18, 2008, 11:23:48 AM »
Just because a feature isn't wanted in the official Rockbox code, doesn't mean you shouldn't implement it for your own pleasure...
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9225
Re: Volume Limiter
« Reply #9 on: May 18, 2008, 02:06:42 PM »
Quote from: terrence1019 on May 18, 2008, 11:10:10 AM
Quote from: markun on May 18, 2008, 05:21:53 AM
So you want to limit the value of the volume setting, not the actual volume itself (which also depends on the audio file being played) ? Can you explain In which cases that would be useful?

Also, I don't see how that could be done with a plugin...

It would be useful for those who always wanted this as a setting.


Couldn't you just not raise the volume above whatever level you want as the limit?  Having an option who's sole purpose is to change the range of values on another option is pretty silly IMO. 
Logged

Offline spike66

  • Member
  • *
  • Posts: 59
Re: Volume Limiter
« Reply #10 on: May 18, 2008, 05:31:28 PM »
It is said that prolonged listening to certain volume levels can cause hearing damage. While the *recommended* max volume level is 70dB, most DAPs can go up to 100dB, so maybe it's not such a bad idea to have the option to put limits on that, just because it might be difficult to manually do it in certain occasions.  It is kind of hard sometimes to identify that limit level for instance. I personally have the tendency to “get carried away” during some songs and put the volume really loud :D; it also happens when the environment is noisy, you tend to raise the volume level in order to hear the music, making your ears go through a much higher decibel level.

Apple's OF is far from perfect though, because it is not a real limit to the decibel level, but rather a "volume set limit", so e.g. if you are listening to a song at an adequate level -volume limit on- but the next song is twice as loud, you'll just hear it twice as loud… it has to be used together with replaygain I guess. They are apparently thinking of making a further change there, check http://www.allheadlinenews.com/articles/7009538792
Logged

Offline eevan

  • Member
  • *
  • Posts: 35
Re: Volume Limiter
« Reply #11 on: May 18, 2008, 06:09:30 PM »
I have an old Sony discman that has AVLS (automatic volume level system). It works like a limiter with a very long release time and properly adjusted threshold level. You can use the volume pot but when you reach a certain level the volume remains constant even if you crank it to the max. Also, it has very short attack time. You can turn the pot quickly to the max, but you barely notice the change in volume.

Maybe the OP had something like that in mind.
Logged
If age or weaknes doe prohibyte bloudletting, you must use boxing.
— PHILIP BARROUGH, The Methode of Phisicke (1583)

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Volume Limiter
« Reply #12 on: May 18, 2008, 06:10:21 PM »
Frankly this is mostly marketing fluff. How loud the audio is depends not only on what it's mastered at, but also on the sensitivity of your headphones. Many listeners also use an amp which changes things further.

There is no way to know how loud you're listening from the player's side. All you can do is replaygain your music, then attempt to choose a level you feel is comfortable with your headphones, or take careful measurement with them. Then, never turn the volume above this level.

A volume limiting plugin would be misleading since it can't be any more precise than a user simply choosing not to turn up the volume. The only way it could be effective is if it weren't controllable by a user and were capped at an extremely cautious level. Any user who can say "It's too loud to hear my music here so I'll turn it up" can also say "It's too loud to hear my music here, so I'll turn off the limit, just for a little while, so I can turn it up." You aren't taking that choice out of their hands, so it really offers no protection beyond their own decisions.

And even then, as I've said a few times now, an equalizer precut serves this exact purpose anyway (limiting the effective maximum volume).
« Last Edit: May 18, 2008, 06:24:21 PM by Llorean »
Logged

Offline soap

  • Member
  • *
  • Posts: 1679
  • Creature of habit.
Re: Volume Limiter
« Reply #13 on: May 18, 2008, 06:36:22 PM »
A method to prevent hearing damage would have to limit decibels to your eardrum.  The power delivered by your DAP's amp is just one part of the equation which determines this value.

In theory your DAP could monitor the energy level of the final signal before it enters the amplifier, and decrease the volume if found to be over a user-set limit - but here is where it gets tricky. 
What I just described limits the electrical energy leaving the DAP - but this has a relatively weak relationship to the mechanical energy delivered to your eardrums.

The efficiency of your headphones is a large factor (as Llorean mentioned) but also the physical fit of the headphones to your ear, and the nature of the air gap between (volume, shape, freedom of movement) the headphone drivers and your eardrum is also a very significant factor.  This is why your would be unable to create a lookup table for headphones and say "Headphones A deliver X decibels of energy to my eardrums when given Y watts of electrical power."
Unless you have a decently accurate model of your head, your ear canal, and your outer ear you simply can not solve this equation to a level of confidence which would deliver safety.


Quote from: dreamlayers on May 17, 2008, 12:01:16 PM
Quote from: Llorean on May 17, 2008, 03:57:11 AM
I'm not sure I understand at all what you're proposing. How would it work? How would it offer any benefit over simply changing the volume? Or setting a pre-amp to limit the volume? Or replaygaining your files to limit maximum effective loudness?

Don't those scale the digital value, effectively decreasing the number of DAC bits in use, increasing distortion from that and decreasing signal to noise ratio?
Decreasing the digital value does decrease the number of bits in use, but does not increase distortion - simply decreases the signal to noise ratio.  And considering you only want to deliver 70-80 decibels to your ear, and the background noise of a quiet room is 20 or so.....
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9225
Re: Volume Limiter
« Reply #14 on: May 19, 2008, 01:29:14 AM »
Quote from: Mr.Kit on May 18, 2008, 05:31:28 PM
It is said that prolonged listening to certain volume levels can cause hearing damage. While the *recommended* max volume level is 70dB, most DAPs can go up to 100dB, so maybe it's not such a bad idea to have the option to put limits on that, just because it might be difficult to manually do it in certain occasions. 

Its not actually possible to limit the dB at your ear, since that depends on the headphones used.  The most you can do is limit the power at the amp, and we have that already (volume control).
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Volume Limiter
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.554 seconds with 22 queries.