mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
34213c388b
commit
fa59ed6ae7
5 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue