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:
commit
9cda98b4e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user