diff options
author | Jens Arnold <amiconn@rockbox.org> | 2009-07-11 23:11:56 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2009-07-11 23:11:56 +0000 |
commit | fa59ed6ae724b3f75c8ba35efcf7ce18f21e3ed2 (patch) | |
tree | b8a286f87871ce82c9024ae525f6434153f77b35 /apps | |
parent | 34213c388bce18de3e5a609a3be5b4dfa075fee6 (diff) |
Fix plugins for the changed pitch scale from r21781
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21794 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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) 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); 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, #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 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) 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)); 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) 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 */ 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) 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; |