Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merged r5549:5550 from branches/SDL-1.2: ALSA 6-channel swizzle fix.
  • Loading branch information
icculus committed Feb 12, 2010
1 parent 8ea9878 commit 8569cf2e76357f5ef3e408cb07c51f960f1aa494
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/audio/alsa/SDL_alsa_audio.c
@@ -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; \

0 comments on commit 8569cf2

Please sign in to comment.