summaryrefslogtreecommitdiff
path: root/premix.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-22 14:59:31 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-22 14:59:31 +0200
commit47ee2fc298006581a477429cba0467f0482b9308 (patch)
tree42ba75e8f9316ebef57d5f991fb2c59a51fdd93e /premix.c
parentc63133b3144cb6b52eb7d8516e31fb520e5c8924 (diff)
fixed 16 to 32 bit converter
Diffstat (limited to 'premix.c')
-rw-r--r--premix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/premix.c b/premix.c
index f637cb44..e8748a74 100644
--- a/premix.c
+++ b/premix.c
@@ -136,8 +136,8 @@ pcm_write_samples_16_to_32 (const ddb_waveformat_t * restrict inputfmt, const ch
const char *in = input + channelmap[c]*2;
out[0] = 0;
out[1] = 0;
- out[2] = input[0];
- out[3] = input[1];
+ out[2] = in[0];
+ out[3] = in[1];
}
input += 2 * inputfmt->channels;
output += outputsamplesize;