Codebase list squeezelite / 3b6f8b9
fix channel swap in S16_LE case on LE architectures Adrian Smith 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
938938 #if SL_LITTLE_ENDIAN
939939 if (gainL == FIXED_ONE && gainR == FIXED_ONE) {
940940 while (cnt--) {
941 *(optr++) = (*(inputptr) & 0xffff0000) | (*(inputptr+1) >> 16 & 0x0000ffff);
941 *(optr++) = (*(inputptr) >> 16 & 0x0000ffff) | (*(inputptr + 1) & 0xffff0000);
942942 inputptr += 2;
943943 }
944944 } else {
945945 while (cnt--) {
946 *(optr++) = (gain(gainL, *(inputptr)) & 0xffff0000) | (gain(gainR, *(inputptr+1)) >> 16 & 0x0000ffff);
946 *(optr++) = (gain(gainL, *(inputptr)) >> 16 & 0x0000ffff) | (gain(gainR, *(inputptr+1)) & 0xffff0000);
947947 inputptr += 2;
948948 }
949949 }