Merged r5549:5550 from branches/SDL-1.2: ALSA 6-channel swizzle fix.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404464
This commit is contained in:
parent
2570f36a05
commit
2aa8294c06
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue