forked from len0rd/rockbox
Fixed several plugins for dB volume.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5cc7347463
commit
c80e0c19e1
7 changed files with 25 additions and 12 deletions
|
@ -241,7 +241,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
case OSCILLOSCOPE_VOL_UP:
|
||||
case OSCILLOSCOPE_VOL_UP | BUTTON_REPEAT:
|
||||
vol = rb->global_settings->volume;
|
||||
if (vol < 100)
|
||||
if (vol < rb->sound_max(SOUND_VOLUME))
|
||||
{
|
||||
vol++;
|
||||
rb->sound_set(SOUND_VOLUME, vol);
|
||||
|
@ -252,7 +252,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
case OSCILLOSCOPE_VOL_DOWN:
|
||||
case OSCILLOSCOPE_VOL_DOWN | BUTTON_REPEAT:
|
||||
vol = rb->global_settings->volume;
|
||||
if (vol > 0)
|
||||
if (vol > rb->sound_min(SOUND_VOLUME))
|
||||
{
|
||||
vol--;
|
||||
rb->sound_set(SOUND_VOLUME, vol);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue