fix rwav sample memcpy

This commit is contained in:
Brad Parker 2017-01-27 18:02:16 -05:00
parent 18f78613ae
commit 0e90ab36a0

View File

@ -115,7 +115,7 @@ int rwav_iterate(rwav_iterator_t *iter)
if (s > RWAV_ITERATE_BUF_SIZE) if (s > RWAV_ITERATE_BUF_SIZE)
s = RWAV_ITERATE_BUF_SIZE; s = RWAV_ITERATE_BUF_SIZE;
memcpy((void*)rwav->samples, (void *)(iter->data + 44 + iter->i), s); memcpy((void*)((uint8_t*)rwav->samples + iter->i), (void *)(iter->data + 44 + iter->i), s);
printf("copied %lu\n", s); printf("copied %lu\n", s);
iter->i += s; iter->i += s;