diff src/audio/SDL_audio.c @ 3021:f3dcf04412cf

First shot at new audio resampling code.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 11 Jan 2009 04:46:42 +0000
parents 0b160c970b7e
children 77c3e67f0740
line wrap: on
line diff
--- a/src/audio/SDL_audio.c	Sun Jan 11 04:46:14 2009 +0000
+++ b/src/audio/SDL_audio.c	Sun Jan 11 04:46:42 2009 +0000
@@ -371,6 +371,7 @@
             silence = 0;
         }
 
+#if 0  /* !!! FIXME: I took len_div out of the structure. Use rate_incr instead? */
         /* If the result of the conversion alters the length, i.e. resampling is being used, use the streamer */
         if (device->convert.len_mult != 1 || device->convert.len_div != 1) {
             /* The streamer's maximum length should be twice whichever is larger: spec.size or len_cvt */
@@ -391,6 +392,7 @@
                 device->spec.size * device->convert.len_div /
                 device->convert.len_mult;
         }
+#endif
 
         /* stream_len = device->convert.len; */
         stream_len = device->spec.size;