if (aubio_midi_file_read(mf, mthd, 14) != AUBIO_OK) {
return AUBIO_FAIL;
}
- if ((AUBIO_STRNCMP(mthd, "MThd", 4) != 0) || (mthd[7] != 6) || (mthd[9] > 2)) {
+ if ((AUBIO_STRNCMP((const char*)mthd, "MThd", 4) != 0) || (mthd[7] != 6) || (mthd[9] > 2)) {
AUBIO_ERR( "Doesn't look like a MIDI file: invalid MThd header");
return AUBIO_FAIL;
}
aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type) {
aubio_resampler_t * s = AUBIO_NEW(aubio_resampler_t);
- uint_t error = 0;
- s->stat = src_new (type, 1, (uint_t*)error) ; /* only one channel */
+ sint_t error = 0;
+ s->stat = src_new (type, 1, (sint_t*)error) ; /* only one channel */
s->proc = AUBIO_NEW(SRC_DATA);
if (error) AUBIO_ERR("%s\n",src_strerror(error));
s->ratio = ratio;