forked from len0rd/rockbox
Allow pitch ratio to hit top and bottom values when using button repeat.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10027 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4f926cce01
commit
aa1834ef32
1 changed files with 4 additions and 0 deletions
|
@ -433,6 +433,8 @@ bool pitch_screen(void)
|
|||
case PITCH_UP | BUTTON_REPEAT:
|
||||
if ( pitch < 1990 )
|
||||
pitch += 10;
|
||||
else
|
||||
pitch = 2000;
|
||||
sound_set_pitch(pitch);
|
||||
break;
|
||||
|
||||
|
@ -445,6 +447,8 @@ bool pitch_screen(void)
|
|||
case PITCH_DOWN | BUTTON_REPEAT:
|
||||
if ( pitch > 510 )
|
||||
pitch -= 10;
|
||||
else
|
||||
pitch = 500;
|
||||
sound_set_pitch(pitch);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue