if (width != depth) {
for (i = 0; i < samples; i++) {
for (j = 0; j < channels; j++) {
- *outbuffer++ = (gint8) (buffer[reorder_map[j]][i] >> (width - depth));
+ *outbuffer++ = (gint8) (buffer[reorder_map[j]][i] << (width - depth));
}
}
} else {
for (i = 0; i < samples; i++) {
for (j = 0; j < channels; j++) {
*outbuffer++ =
- (gint16) (buffer[reorder_map[j]][i] >> (width - depth));
+ (gint16) (buffer[reorder_map[j]][i] << (width - depth));
}
}
} else {
for (i = 0; i < samples; i++) {
for (j = 0; j < channels; j++) {
*outbuffer++ =
- (gint32) (buffer[reorder_map[j]][i] >> (width - depth));
+ (gint32) (buffer[reorder_map[j]][i] << (width - depth));
}
}
} else {