Skip to content

Commit

Permalink
Fixed channel swizzling for ALSA target with 6-channel output.
Browse files Browse the repository at this point in the history
  Fixes Bugzilla #942.
  • Loading branch information
icculus committed Feb 12, 2010
1 parent ef5d66d commit be89dad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -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; \
Expand Down

0 comments on commit be89dad

Please sign in to comment.