1
0
Fork 0
forked from len0rd/rockbox

Added pitch setting screen for recorders. Hold ON in wps to see it. Pitch range is 50-200%

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2290 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-09-13 13:14:06 +00:00
parent 4ede925c8d
commit 8ce651efa0
2 changed files with 150 additions and 14 deletions

View file

@ -1795,8 +1795,11 @@ void mpeg_set_pitch(int percent)
{
unsigned long val;
/* invert percent value */
percent = 10000/percent;
/* Calculate the new (bogus) frequency */
val = 18432 - (18432*percent/100);
val = 18432*percent/100;
mas_writemem(MAS_BANK_D0,0x7f3,&val,1);