Fix test_sampr for the changes in r22440
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22682 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
65fff8bdd8
commit
ced32dfc48
1 changed files with 4 additions and 2 deletions
|
@ -180,11 +180,13 @@ static void set_volume(int value)
|
||||||
rb->sound_set(SOUND_VOLUME, value);
|
rb->sound_set(SOUND_VOLUME, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void format_volume(char *buf, size_t len, int value, const char *unit)
|
static const char *format_volume(char *buf, size_t len, int value,
|
||||||
|
const char *unit)
|
||||||
{
|
{
|
||||||
|
(void)unit;
|
||||||
rb->snprintf(buf, len, "%d %s", rb->sound_val2phys(SOUND_VOLUME, value),
|
rb->snprintf(buf, len, "%d %s", rb->sound_val2phys(SOUND_VOLUME, value),
|
||||||
rb->sound_unit(SOUND_VOLUME));
|
rb->sound_unit(SOUND_VOLUME));
|
||||||
(void)unit;
|
return buf;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_VOLUME_IN_LIST */
|
#endif /* HAVE_VOLUME_IN_LIST */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue