src/audio/coreaudio/SDL_coreaudio.c
changeset 10255 77a266c9c786
parent 10240 0ba7106e9a6d
equal deleted inserted replaced
10254:2b8bb76140a5 10255:77a266c9c786
   373         while (remaining > 0) {
   373         while (remaining > 0) {
   374             UInt32 len = this->hidden->bufferSize - this->hidden->bufferOffset;
   374             UInt32 len = this->hidden->bufferSize - this->hidden->bufferOffset;
   375             if (len > remaining)
   375             if (len > remaining)
   376                 len = remaining;
   376                 len = remaining;
   377 
   377 
       
   378             /* !!! FIXME: why are we copying here? just pass the buffer to the callback? */
   378             SDL_memcpy((char *)this->hidden->buffer + this->hidden->bufferOffset, ptr, len);
   379             SDL_memcpy((char *)this->hidden->buffer + this->hidden->bufferOffset, ptr, len);
   379             ptr += len;
   380             ptr += len;
   380             remaining -= len;
   381             remaining -= len;
   381             this->hidden->bufferOffset += len;
   382             this->hidden->bufferOffset += len;
   382 
   383