src/audio/macosx/SDL_coreaudio.c
changeset 1487 dc6b59e925a2
parent 1402 d910939febfa
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4103 9df8136abec0
equal deleted inserted replaced
1486:9d77fc9d0ace 1487:dc6b59e925a2
   126         }
   126         }
   127         
   127         
   128         len = bufferSize - bufferOffset;
   128         len = bufferSize - bufferOffset;
   129         if (len > remaining)
   129         if (len > remaining)
   130             len = remaining;
   130             len = remaining;
   131         SDL_memcpy(ptr, buffer + bufferOffset, len);
   131         SDL_memcpy(ptr, (char *)buffer + bufferOffset, len);
   132         ptr += len;
   132         ptr = (char *)ptr + len;
   133         remaining -= len;
   133         remaining -= len;
   134         bufferOffset += len;
   134         bufferOffset += len;
   135     }
   135     }
   136     
   136     
   137     return 0;
   137     return 0;