mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Audio: convert 5.1 to 7.1, use right-surround for r-front and r-back (see #4104)
This commit is contained in:
parent
9727655b89
commit
21349901ea
@ -353,9 +353,9 @@ SDL_Convert51To71(SDL_AudioCVT * cvt, SDL_AudioFormat format)
|
|||||||
rs = (rf + rb) * 0.5f;
|
rs = (rf + rb) * 0.5f;
|
||||||
/* !!! FIXME: these four may clip */
|
/* !!! FIXME: these four may clip */
|
||||||
lf += lf - ls;
|
lf += lf - ls;
|
||||||
rf += rf - ls;
|
rf += rf - rs;
|
||||||
lb += lb - ls;
|
lb += lb - ls;
|
||||||
rb += rb - ls;
|
rb += rb - rs;
|
||||||
dst[3] = src[3]; /* LFE */
|
dst[3] = src[3]; /* LFE */
|
||||||
dst[2] = src[2]; /* FC */
|
dst[2] = src[2]; /* FC */
|
||||||
dst[7] = rs; /* SR */
|
dst[7] = rs; /* SR */
|
||||||
|
Loading…
Reference in New Issue
Block a user