fix for audio.c(607): error C2036: 'void *': unknown size in Visual Studio 2015.
This commit is contained in:
parent
2ac956208d
commit
de103ecc5e
@ -604,7 +604,7 @@ void WaveCrop(Wave *wave, int initSample, int finalSample)
|
|||||||
|
|
||||||
void *data = malloc(sampleCount*wave->channels*wave->sampleSize/8);
|
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);
|
free(wave->data);
|
||||||
wave->data = data;
|
wave->data = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user