mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed channel swizzling for ALSA target with 6-channel output.
Fixes Bugzilla #942. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -264,9 +264,8 @@ static void ALSA_WaitAudio(_THIS)
|
||||
*/
|
||||
#define SWIZ6(T) \
|
||||
T *ptr = (T *) 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