summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/tta/ttaplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/tta/ttaplug.c b/plugins/tta/ttaplug.c
index d3650324..3775efa0 100644
--- a/plugins/tta/ttaplug.c
+++ b/plugins/tta/ttaplug.c
@@ -130,10 +130,10 @@ tta_read_int16 (DB_fileinfo_t *_info, char *bytes, int size) {
int nn = n;
char *p = info->buffer;
while (n > 0) {
- memcpy (bytes, p, 2);
+ *((int16_t*)bytes) = (int16_t)(((uint8_t)p[1]<<8) | (uint8_t)p[0]);
bytes += 2;
if (_info->channels == 2) {
- memcpy (bytes, p + 2, 2);
+ *((int16_t*)bytes) = (int16_t)(((uint8_t)(p+info->tta.BSIZE)[1]<<8) | (uint8_t)(p+info->tta.BSIZE)[0]);
bytes += 2;
}
n--;