mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 23:40:54 +00:00
Removed space between sizeof and parentheses
This commit is contained in:
parent
dfa832c5de
commit
06183989e1
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ static Sint32 GetResamplerPadding(const Sint32 inrate, const Sint32 outrate)
|
||||||
return RESAMPLER_SAMPLES_PER_ZERO_CROSSING;
|
return RESAMPLER_SAMPLES_PER_ZERO_CROSSING;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* lpadding and rpadding are expected to be buffers of (ResamplePadding(inrate, outrate) * chans * sizeof (float)) bytes. */
|
/* lpadding and rpadding are expected to be buffers of (ResamplePadding(inrate, outrate) * chans * sizeof(float)) bytes. */
|
||||||
static int SDL_ResampleAudio(const int chans, const int inrate, const int outrate,
|
static int SDL_ResampleAudio(const int chans, const int inrate, const int outrate,
|
||||||
const float *lpadding, const float *rpadding,
|
const float *lpadding, const float *rpadding,
|
||||||
const float *inbuf, const int inbuflen,
|
const float *inbuf, const int inbuflen,
|
||||||
|
@ -1062,7 +1062,7 @@ static int SDL_ResampleAudioStream(SDL_AudioStream *stream, const void *_inbuf,
|
||||||
|
|
||||||
/* update our left padding with end of current input, for next run. */
|
/* update our left padding with end of current input, for next run. */
|
||||||
if (cpy < paddingbytes) { /* slide end of the padding buffer to the start if we aren't replacing the whole thing. */
|
if (cpy < paddingbytes) { /* slide end of the padding buffer to the start if we aren't replacing the whole thing. */
|
||||||
SDL_memmove(lpadding, lpadding + (cpy / sizeof (float)), paddingbytes - cpy);
|
SDL_memmove(lpadding, lpadding + (cpy / sizeof(float)), paddingbytes - cpy);
|
||||||
}
|
}
|
||||||
SDL_memcpy((lpadding + paddingsamples) - (cpy / sizeof(float)), inbufend - cpy, cpy);
|
SDL_memcpy((lpadding + paddingsamples) - (cpy / sizeof(float)), inbufend - cpy, cpy);
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue