Browse Source

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

fix for audio.c(607): error C2036 in Visual Studio.
pull/236/head
Ray 7 years ago
committed by GitHub
parent
commit
9cda98b4e9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/audio.c

+ 1
- 1
src/audio.c 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, p">(unsigned char*)wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8);
free(wave->data);
wave->data = data;

Loading…
Cancel
Save