fix for audio.c(607): error C2036: 'void *': unknown size in Visual Studio 2015.

This commit is contained in:
bugcaptor 2017-03-02 10:07:09 +09:00
parent 2ac956208d
commit de103ecc5e

View File

@ -604,7 +604,7 @@ void WaveCrop(Wave *wave, int initSample, int finalSample)
void *data = malloc(sampleCount*wave->channels*wave->sampleSize/8);
memcpy(data, wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8);
memcpy(data, (unsigned char*)wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8);
free(wave->data);
wave->data = data;