This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7427 - Adjusting bass and treble causes master volume to increase inaccurately
Attached to Project:
Rockbox
Opened by Mark (Xebozone) - Thursday, 12 July 2007, 06:32 GMT+2
Last edited by Thom Johansen (preglow) - Monday, 07 April 2008, 22:59 GMT+2
Opened by Mark (Xebozone) - Thursday, 12 July 2007, 06:32 GMT+2
Last edited by Thom Johansen (preglow) - Monday, 07 April 2008, 22:59 GMT+2
|
DetailsIncreasing the "bass" and "treble" in the sound settings increases the miniumum master volume.
For example, if I increased the bass be 6dB, then, - 56dB in the master volume will actually be -50dB (I think it's directly related in this way). If was then to increase the treble by 5dB, then -56dB in the master volume would now be -45dB (because bass was increased by 6 and 56-6-5=45). Also, on another note, when increasing/decreasing bass/treble, the only difference I notice is a change in overall volume anyways, not a change to the bass or treble frequencies! Doing some research on how dB is measured (wikipedia and physics knowledge may help developers to understand) (it's logarithmic where dB level = 10 log (intensity level)/(reference intensity level) where the reference level is the minimum intensity level of the audio device) may improve the accuracy and functionality of the sound volume adjusting feature. Taking a look at |
This task depends upon
I really meant to remove the word 'minimum'
As well, which SVN revision are you reporting this problem on?
If you want to try an experiment, add #define HAVE_SW_TONE_CONTROLS to your target's define and compile, and see if the software tone controls work better for you.
The lack of 'bass' and 'treble' control on the 5G is just a side-note. I used to have a 4G and I remember that they worked.
I do use the hardware tone controls (which do suck as they distort the sound) as well as changing the 'bass' and 'treble' settings (which seems to have no effect other than a change in master volume, as described).
So, what effect does the 'bass' and 'treble' settings have on the 5G? I haven't noticed any change in bass and treble, just a change in volume, as described, whether the hardware equaliser is on or not. If the 'bass' and 'treble' controls are not working on the 5G, then they should either be removed or modified.
I am not too familiar with compiling, although I have done it once or twice on other projects.
Maybe someone else can try this, or tell me how to do it.
I use both linux (I just started with it actually) and Windows. It would probably be better to compile with linux.
As I said, all the settings for bass and treble do is tell the chip to change, and what changes in the sound happens are because the chip sucks, not anything Rockbox does.
If the volume number itself changes, there's a bug. Is that what you're saying? You never once said then number changed, your posts all seem to suggest it just sounds like it changes, which is a side effect of the hardware. It's "Bass" and "Treble" seem to not work properly, and affect the apparent volume instead.
One workaround would be that for every dB of bass/treble increased, the actual volume would be decreased by the same amount, but without the user knowing it and without a change in the actual settings. So that increasing the bass by 1dB when the volume is set to -50dB will keep the volume in the settings at -50dB, but the actual volume would be -51dB. This will result in an increase in bass by 1dB without increasing the actual total volume by 1dB, provided that the 'bass' and 'treble' settings are actually properly communicating with the hardware, which I think they are not.
From what I have experienced, adjusting the 'bass' and 'treble' settings doesn't actually increase the bass/treble and it doesn't affect the 'hardware equaliser' (which is also in the sound menu). The 'hardware equaliser' seems to be completely separate from the 'bass' and 'treble' settings. Increasing the low shelf filter gain doesn't affect the actual volume.
Also don't forget to look at
FS#5387as that bug still exists.Also, I have noticed a dramatic increase in volume between -57dB and -58dB where -58 is completely silent (provided the 'bass' and 'treble' are at 0dB) and -57dB is quite significantly louder. The whole dB system is stuffed
-58 should be labeled the mute icon, not actually "-58". The dB system would be stuffed anyway, because -58 isn't "true silent" in the first place. Also, if you say -58 is silent, then I don't understand the other bug you're linking to.
What *should* be done is the flat out disabling of those bass and treble settings since they don't work. But this has been known for a while, there's just no final "what is the right replacement for the non-working Bass/Treble 'feature'"
The bug I am reporting is that if -58 is supposed to be 'mute' then increasing the 'bass'/'treble' by 1dB is the equivalent of physically going to the volume menu and bringing the volume up to -57dB without actually changing the volume in the settings. (ie. it reports -58 but it is effectively -57).
The adjustment to Rockbox I feel should be made is that increasing/decreasing the 'bass'/'treble' settings will decrease/increase (respectfully) the apparent volume by the same amount so that -58dB in the volume settings IS ACTUALLY -58dB (which in this case, is mute).
The hardware is still set at -58 when you raise the bass +1, which means we cannot lower the volume any more. It's not something that can be fixed unless you change out the hardware. And again, it's the Bass/Treble hardware feature that's broken.
For that, I suppose would require a modification of the hardware itself?
I thought that the firmware (ie. Rockbox) has complete control over the hardware, but I suppose it has a mind of its own then!?
So this is impossible to fix or adjust?
If you set the volume to -58, then increase the treble by 1, the volume is still set at -58. It doesn't suddenly add -59 into the list of possible settings.
So I'm not certain what you mean?
As I've said several times: The solution is to remove the Bass/Treble option and replace it with either a software one, or the other filters, a method that works properly.
I'm saying that it's AS IF it changes the settings!
Increasing treble by one would not add -59 to the list of possible settings (especially since -58 + 1 = -57)
I'm saying that if the volume was set to let's say, 0dB (which is probably not recommended with headphones :P) then increasing bass/treble by 1dB will act AS IF you went to the volume settings and increased it to 1dB (since you increased the bass/treble setting by 1dB). It will not modify the list of possible volume settings, but it will act as if the user changed it, without actually changing it.
Going to the 'hardware equaliser' settings and increasing the gain doesn't have this bug. It's only the bass/treble feature in the sound menu that does it. Clearly it needs to be replaced, recoded, or removed (This can be known as the 'three Rs' of programming :D)
...and yes, I realised that the bass/treble option is broken from the moment you mentioned it...I am just trying to figure out 'how' it's broken and suggest a possible work-around.
Hmm, i just discovered that the problem only occurs when you 'increase' the bass/treble settings (above 0dB) a decrease as no apparent effect (or I never noticed it anyways).
Perhaps I was expecting the bass/treble settings to increase the relative levels of bass/treble (compared to the other respective sound frequencies) without affecting the mean volume level?
But then why would the software equaliser (and the hardware equaliser in the sound settings) not have this problem?
What part of that don't you understand, seriously? There's nothing to "test." It doesn't work properly. It needs to be replaced with something that does work.
The volume only goes down to -58. Which means that even if you increase Treble by 1, you can't lower the volume again to compensate: The "volume" still at -58.
Like in jets, when the rudder fails (hardware), there is software to help the plane fly straight by varying the engine power (software compensation).
That's what I'm questioning here!
You continued to go on and say it *wasn't* about the Bass/Treble controls, but you've continued talking about them anyway, despite the fact that I've repeatedly said they simply need to be removed and replaced with something that works, not compensated for, because they don't simply have strange side effects, they don't work at all.
I am not a software/hardware engineer and there are some conceptual understanding that I was missing.
Please excuse my lack of knowledge on the subject and the effective stupidity that was a result of it.
I suppose this flyspray will be left open for anybody that wants to replace the controls and hopefully improve their usability and functionality for all players now and in the future, not just for the buggy 5G.