diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/mpegplayer/audio_thread.c | 2 | ||||
-rw-r--r-- | apps/plugins/splitedit.c | 6 | ||||
-rw-r--r-- | apps/plugins/video.c | 2 | ||||
-rw-r--r-- | apps/plugins/wavplay.c | 2 | ||||
-rw-r--r-- | apps/plugins/wavrecord.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/mpegplayer/audio_thread.c b/apps/plugins/mpegplayer/audio_thread.c index f6552218b0..a901b721d8 100644 --- a/apps/plugins/mpegplayer/audio_thread.c +++ b/apps/plugins/mpegplayer/audio_thread.c | |||
@@ -481,7 +481,7 @@ static void audio_thread(void) | |||
481 | 481 | ||
482 | td.dsp = (struct dsp_config *)rb->dsp_configure(NULL, DSP_MYDSP, | 482 | td.dsp = (struct dsp_config *)rb->dsp_configure(NULL, DSP_MYDSP, |
483 | CODEC_IDX_AUDIO); | 483 | CODEC_IDX_AUDIO); |
484 | rb->sound_set_pitch(1000); | 484 | rb->sound_set_pitch(PITCH_SPEED_100); |
485 | rb->dsp_configure(td.dsp, DSP_RESET, 0); | 485 | rb->dsp_configure(td.dsp, DSP_RESET, 0); |
486 | rb->dsp_configure(td.dsp, DSP_SET_SAMPLE_DEPTH, MAD_F_FRACBITS); | 486 | rb->dsp_configure(td.dsp, DSP_SET_SAMPLE_DEPTH, MAD_F_FRACBITS); |
487 | 487 | ||
diff --git a/apps/plugins/splitedit.c b/apps/plugins/splitedit.c index 81a8b2416a..9f62b7a346 100644 --- a/apps/plugins/splitedit.c +++ b/apps/plugins/splitedit.c | |||
@@ -1106,17 +1106,17 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split, | |||
1106 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) | 1106 | #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) |
1107 | #ifdef SPLITEDIT_SPEED100 | 1107 | #ifdef SPLITEDIT_SPEED100 |
1108 | case SPLITEDIT_SPEED150: | 1108 | case SPLITEDIT_SPEED150: |
1109 | rb->sound_set_pitch(1500); | 1109 | rb->sound_set_pitch(150L*PITCH_SPEED_PRECISION); |
1110 | splitedit_invalidate_osci(); | 1110 | splitedit_invalidate_osci(); |
1111 | break; | 1111 | break; |
1112 | 1112 | ||
1113 | case SPLITEDIT_SPEED100: | 1113 | case SPLITEDIT_SPEED100: |
1114 | rb->sound_set_pitch(1000); | 1114 | rb->sound_set_pitch(PITCH_SPEED_100); |
1115 | splitedit_invalidate_osci(); | 1115 | splitedit_invalidate_osci(); |
1116 | break; | 1116 | break; |
1117 | 1117 | ||
1118 | case SPLITEDIT_SPEED50: | 1118 | case SPLITEDIT_SPEED50: |
1119 | rb->sound_set_pitch(500); | 1119 | rb->sound_set_pitch(50L*PITCH_SPEED_PRECISION); |
1120 | splitedit_invalidate_osci(); | 1120 | splitedit_invalidate_osci(); |
1121 | break; | 1121 | break; |
1122 | #endif | 1122 | #endif |
diff --git a/apps/plugins/video.c b/apps/plugins/video.c index bd8a95eb71..6b0a47c7c6 100644 --- a/apps/plugins/video.c +++ b/apps/plugins/video.c | |||
@@ -882,7 +882,7 @@ int main(char* filename) | |||
882 | file_size = rb->filesize(fd); | 882 | file_size = rb->filesize(fd); |
883 | 883 | ||
884 | /* reset pitch value to ensure synchronous playback */ | 884 | /* reset pitch value to ensure synchronous playback */ |
885 | rb->sound_set_pitch(1000); | 885 | rb->sound_set_pitch(PITCH_SPEED_100); |
886 | 886 | ||
887 | /* init statistics */ | 887 | /* init statistics */ |
888 | rb->memset(&gStats, 0, sizeof(gStats)); | 888 | rb->memset(&gStats, 0, sizeof(gStats)); |
diff --git a/apps/plugins/wavplay.c b/apps/plugins/wavplay.c index 50b671f52c..368d8e3475 100644 --- a/apps/plugins/wavplay.c +++ b/apps/plugins/wavplay.c | |||
@@ -3547,7 +3547,7 @@ int play_file(char* filename) | |||
3547 | rb->lcd_puts(0, 2, buf); | 3547 | rb->lcd_puts(0, 2, buf); |
3548 | rb->lcd_update(); | 3548 | rb->lcd_update(); |
3549 | 3549 | ||
3550 | rb->sound_set_pitch(1000); /* reset pitch */ | 3550 | rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */ |
3551 | mas_download_pcm(); /* Download PCM codec */ | 3551 | mas_download_pcm(); /* Download PCM codec */ |
3552 | 3552 | ||
3553 | /* Configure PCM codec */ | 3553 | /* Configure PCM codec */ |
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c index 58a103dfe2..20a04ced28 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c | |||
@@ -3507,7 +3507,7 @@ static int record_file(char *filename) | |||
3507 | return PLUGIN_ERROR; | 3507 | return PLUGIN_ERROR; |
3508 | } | 3508 | } |
3509 | 3509 | ||
3510 | rb->sound_set_pitch(1000); /* reset pitch */ | 3510 | rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */ |
3511 | mas_download_pcm(); | 3511 | mas_download_pcm(); |
3512 | num_rec_bytes = 0; | 3512 | num_rec_bytes = 0; |
3513 | bytes_written = 0; | 3513 | bytes_written = 0; |