Merge pull request #234 from bugcaptor/fix-vs2015-build-audio_c

fix for audio.c(607): error C2036 in Visual Studio.
This commit is contained in:
Ray 2017-03-03 09:17:14 +01:00 committed by GitHub
commit 9cda98b4e9

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;