mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Merged r5549:5550 from branches/SDL-1.2: ALSA 6-channel swizzle fix.
This commit is contained in:
parent
6704bb0bcc
commit
cb5537314f
|
|
@ -234,9 +234,8 @@ ALSA_WaitDevice(_THIS)
|
|||
*/
|
||||
#define SWIZ6(T) \
|
||||
T *ptr = (T *) this->hidden->mixbuf; \
|
||||
const Uint32 count = (this->spec.samples / 6); \
|
||||
Uint32 i; \
|
||||
for (i = 0; i < count; i++, ptr += 6) { \
|
||||
for (i = 0; i < this->spec.samples; i++, ptr += 6) { \
|
||||
T tmp; \
|
||||
tmp = ptr[2]; ptr[2] = ptr[4]; ptr[4] = tmp; \
|
||||
tmp = ptr[3]; ptr[3] = ptr[5]; ptr[5] = tmp; \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user