Fixed typo converting 4 channel audio to 2 channel

This commit is contained in:
Sam Lantinga 2017-10-20 16:53:42 -07:00
parent 9a291c1e59
commit e830ef3458
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ SDL_ConvertQuadToStereo(SDL_AudioCVT * cvt, SDL_AudioFormat format)
dst[1] = (src[1] + src[3]) * 0.5f; /* right */ dst[1] = (src[1] + src[3]) * 0.5f; /* right */
} }
cvt->len_cvt /= 3; cvt->len_cvt /= 2;
if (cvt->filters[++cvt->filter_index]) { if (cvt->filters[++cvt->filter_index]) {
cvt->filters[cvt->filter_index] (cvt, format); cvt->filters[cvt->filter_index] (cvt, format);
} }