All pastes #1492116 Raw Edit

Unbenannt

public text v1 · immutable
#1492116 ·published 2009-07-11 23:09 UTC
rendered paste body
Index: apps/plugins/video.c
===================================================================
--- apps/plugins/video.c	(Revision 21788)
+++ apps/plugins/video.c	(Arbeitskopie)
@@ -882,7 +882,7 @@
     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));
Index: apps/plugins/splitedit.c
===================================================================
--- apps/plugins/splitedit.c	(Revision 21788)
+++ apps/plugins/splitedit.c	(Arbeitskopie)
@@ -1106,17 +1106,17 @@
 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
 #ifdef SPLITEDIT_SPEED100
             case SPLITEDIT_SPEED150:
-                rb->sound_set_pitch(1500);
+                rb->sound_set_pitch(PITCH_SPEED_100 + (PITCH_SPEED_100 / 2));
                 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(PITCH_SPEED_100 / 2);
                 splitedit_invalidate_osci();
                 break;
 #endif
@@ -1236,7 +1236,7 @@
         }
 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
 #ifdef SPLITEDIT_SPEED100
-        rb->sound_set_pitch(1000); /* make sure to reset pitch */
+        rb->sound_set_pitch(PITCH_SPEED_100); /* make sure to reset pitch */
 #endif
 #endif
 
Index: apps/plugins/wavplay.c
===================================================================
--- apps/plugins/wavplay.c	(Revision 21788)
+++ apps/plugins/wavplay.c	(Arbeitskopie)
@@ -3547,7 +3547,7 @@
     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 */
Index: apps/plugins/wavrecord.c
===================================================================
--- apps/plugins/wavrecord.c	(Revision 21788)
+++ apps/plugins/wavrecord.c	(Arbeitskopie)
@@ -3507,7 +3507,7 @@
         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;
Index: apps/plugins/mpegplayer/audio_thread.c
===================================================================
--- apps/plugins/mpegplayer/audio_thread.c	(Revision 21788)
+++ apps/plugins/mpegplayer/audio_thread.c	(Arbeitskopie)
@@ -481,7 +481,7 @@
 
     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);