diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-14 13:48:31 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-14 13:48:31 +0200 |
commit | af9e2323a5028035a96d2bd12abaa9c6eb562580 (patch) | |
tree | aba06882c33ed7823d98711911bce7ff5b89645d /plugins/tta/ttaplug.c | |
parent | 2e4f1c2c4d8ff0609f475be7817287939af5ed66 (diff) |
fixed tta multichannel
Diffstat (limited to 'plugins/tta/ttaplug.c')
-rw-r--r-- | plugins/tta/ttaplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/tta/ttaplug.c b/plugins/tta/ttaplug.c index d1815b35..c164d9fc 100644 --- a/plugins/tta/ttaplug.c +++ b/plugins/tta/ttaplug.c @@ -135,7 +135,7 @@ tta_read_int16 (DB_fileinfo_t *_info, char *bytes, int size) { while (n > 0) { *((int16_t*)bytes) = (int16_t)(((uint8_t)p[1]<<8) | (uint8_t)p[0]); bytes += 2; - if (_info->channels == 2) { + if (out_ch == 2) { *((int16_t*)bytes) = (int16_t)(((uint8_t)(p+info->tta.BSIZE)[1]<<8) | (uint8_t)(p+info->tta.BSIZE)[0]); bytes += 2; } @@ -149,7 +149,7 @@ tta_read_int16 (DB_fileinfo_t *_info, char *bytes, int size) { while (n > 0) { *((int16_t*)bytes) = ((int16_t)(p[0])) << 8; bytes += 2; - if (_info->channels == 2) { + if (out_ch == 2) { *((int16_t*)bytes) = ((int16_t)(p[1])) << 8; bytes += 2; } |