1
0
Fork 0
forked from len0rd/rockbox

Fix plugins for the changed pitch scale from r21781

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21794 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2009-07-11 23:11:56 +00:00
parent 34213c388b
commit fa59ed6ae7
5 changed files with 7 additions and 7 deletions

View file

@ -481,7 +481,7 @@ static void audio_thread(void)
td.dsp = (struct dsp_config *)rb->dsp_configure(NULL, DSP_MYDSP,
CODEC_IDX_AUDIO);
rb->sound_set_pitch(1000);
rb->sound_set_pitch(PITCH_SPEED_100);
rb->dsp_configure(td.dsp, DSP_RESET, 0);
rb->dsp_configure(td.dsp, DSP_SET_SAMPLE_DEPTH, MAD_F_FRACBITS);

View file

@ -1106,17 +1106,17 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split,
#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
#ifdef SPLITEDIT_SPEED100
case SPLITEDIT_SPEED150:
rb->sound_set_pitch(1500);
rb->sound_set_pitch(150L*PITCH_SPEED_PRECISION);
splitedit_invalidate_osci();
break;
case SPLITEDIT_SPEED100:
rb->sound_set_pitch(1000);
rb->sound_set_pitch(PITCH_SPEED_100);
splitedit_invalidate_osci();
break;
case SPLITEDIT_SPEED50:
rb->sound_set_pitch(500);
rb->sound_set_pitch(50L*PITCH_SPEED_PRECISION);
splitedit_invalidate_osci();
break;
#endif

View file

@ -882,7 +882,7 @@ int main(char* filename)
file_size = rb->filesize(fd);
/* reset pitch value to ensure synchronous playback */
rb->sound_set_pitch(1000);
rb->sound_set_pitch(PITCH_SPEED_100);
/* init statistics */
rb->memset(&gStats, 0, sizeof(gStats));

View file

@ -3547,7 +3547,7 @@ int play_file(char* filename)
rb->lcd_puts(0, 2, buf);
rb->lcd_update();
rb->sound_set_pitch(1000); /* reset pitch */
rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */
mas_download_pcm(); /* Download PCM codec */
/* Configure PCM codec */

View file

@ -3507,7 +3507,7 @@ static int record_file(char *filename)
return PLUGIN_ERROR;
}
rb->sound_set_pitch(1000); /* reset pitch */
rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */
mas_download_pcm();
num_rec_bytes = 0;
bytes_written = 0;