mirror of
https://github.com/yawut/SDL.git
synced 2026-04-26 00:57:36 -05:00
parent
ce81311ab7
commit
81d61485aa
|
|
@ -293,10 +293,9 @@ SDL_ConvertStereo(SDL_AudioCVT * cvt, SDL_AudioFormat format)
|
|||
const type *src = (const type *) (cvt->buf + cvt->len_cvt); \
|
||||
type *dst = (type *) (cvt->buf + cvt->len_cvt * 2); \
|
||||
for (i = cvt->len_cvt / sizeof(type); i; --i) { \
|
||||
const type val = *src; \
|
||||
src -= 1; \
|
||||
dst -= 2; \
|
||||
dst[0] = dst[1] = val; \
|
||||
dst[0] = dst[1] = *src; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user