mirror of
https://github.com/yawut/SDL.git
synced 2026-09-12 19:16:42 -05:00
Merged r5549:5550 from branches/SDL-1.2: ALSA 6-channel swizzle fix.
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user