ravachol / kew

A command-line music player
GNU General Public License v2.0
567 stars 21 forks source link

Build fails on i386: incompatible function pointer types assigning to 'ma_read_proc' #118

Closed yurivict closed 7 months ago

yurivict commented 7 months ago
src/soundcommon.c:486:25: error: incompatible function pointer types assigning to 'ma_read_proc' (aka 'ma_result (*)(void *, void *, unsigned int, unsigned int *)') from 'ma_result (void *, void *, unsigned long, unsigned long *)' [-Wincompatible-function-pointer-types]
  486 |         decoder->onRead = ma_libvorbis_read_pcm_frames_wrapper;
      |                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/soundcommon.c:548:25: error: incompatible function pointer types assigning to 'ma_read_proc' (aka 'ma_result (*)(void *, void *, unsigned int, unsigned int *)') from 'ma_result (void *, void *, unsigned long, unsigned long *)' [-Wincompatible-function-pointer-types]
  548 |         decoder->onRead = m4a_read_pcm_frames_wrapper;
      |                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/soundcommon.c:612:25: error: incompatible function pointer types assigning to 'ma_read_proc' (aka 'ma_result (*)(void *, void *, unsigned int, unsigned int *)') from 'ma_result (void *, void *, unsigned long, unsigned long *)' [-Wincompatible-function-pointer-types]
  612 |         decoder->onRead = ma_libopus_read_pcm_frames_wrapper;
      |                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.

See the log.

ravachol commented 7 months ago

Just committed a fix for this. Hope that solves it. These are low values, 1024, and similar.