Explorar el Código

Added a FIXME.

Ryan C. Gordon hace 9 años
padre
commit
5de11a5fc5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/audio/coreaudio/SDL_coreaudio.c

+ 1 - 0
src/audio/coreaudio/SDL_coreaudio.c

@@ -375,6 +375,7 @@ inputCallback(void *inRefCon,
             if (len > remaining)
             if (len > remaining)
                 len = remaining;
                 len = remaining;
 
 
+            /* !!! FIXME: why are we copying here? just pass the buffer to the callback? */
             SDL_memcpy((char *)this->hidden->buffer + this->hidden->bufferOffset, ptr, len);
             SDL_memcpy((char *)this->hidden->buffer + this->hidden->bufferOffset, ptr, len);
             ptr += len;
             ptr += len;
             remaining -= len;
             remaining -= len;