diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-01 13:41:03 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-01 13:41:03 +0000 |
commit | 674eaca5ef59625f90088da006eca4d10e2bea56 (patch) | |
tree | b0f02cec358ce1c506fb6d2256e2db059c7b6b6a /apps/sound_menu.c | |
parent | 88d5aab5a1098c5636584ddf06bd3012dc8c5b4c (diff) |
Moved the mpeg_sound_xxx() functions to sound.c and renamed them to sound_xxx()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6240 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index f08ee35525..560163c7c1 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c @@ -34,6 +34,7 @@ #include "sprintf.h" #include "talk.h" #include "misc.h" +#include "sound.h" static const char* const fmt[] = { @@ -59,11 +60,11 @@ bool set_sound(const char* string, int steps; int button; - unit = mpeg_sound_unit(setting); - numdec = mpeg_sound_numdecimals(setting); - steps = mpeg_sound_steps(setting); - min = mpeg_sound_min(setting); - max = mpeg_sound_max(setting); + unit = sound_unit(setting); + numdec = sound_numdecimals(setting); + steps = sound_steps(setting); + min = sound_min(setting); + max = sound_max(setting); if (*unit == 'd') /* crude reconstruction */ talkunit = UNIT_DB; else if (*unit == '%') @@ -82,7 +83,7 @@ bool set_sound(const char* string, while (!done) { if (changed) { - val = mpeg_val2phys(setting, *variable); + val = sound_val2phys(setting, *variable); if(numdec) { integer = val / (10 * numdec); @@ -136,7 +137,7 @@ bool set_sound(const char* string, break; } if (changed) - mpeg_sound_set(setting, *variable); + sound_set(setting, *variable); } lcd_stop_scroll(); return false; @@ -196,7 +197,7 @@ static bool mdb_shape(void) static void set_mdb_enable(bool value) { - mpeg_sound_set(SOUND_MDB_ENABLE, (int)value); + sound_set(SOUND_MDB_ENABLE, (int)value); } static bool mdb_enable(void) @@ -210,7 +211,7 @@ static bool mdb_enable(void) static void set_superbass(bool value) { - mpeg_sound_set(SOUND_SUPERBASS, (int)value); + sound_set(SOUND_SUPERBASS, (int)value); } static bool superbass(void) @@ -224,7 +225,7 @@ static bool superbass(void) static void set_avc(int val) { - mpeg_sound_set(SOUND_AVC, val); + sound_set(SOUND_AVC, val); } static bool avc(void) @@ -379,7 +380,7 @@ static bool reconstartup(void) static void set_chanconf(int val) { - mpeg_sound_set(SOUND_CHANNELS, val); + sound_set(SOUND_CHANNELS, val); } static bool chanconf(void) |