Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with gcc-14.1.0 #94

Closed
heitbaum opened this issue May 7, 2024 · 1 comment
Closed

Compile error with gcc-14.1.0 #94

heitbaum opened this issue May 7, 2024 · 1 comment

Comments

@heitbaum
Copy link

heitbaum commented May 7, 2024

libretro/core-mapper.c: In function 'retro_sound_update':
libretro/core-mapper.c:158:22: error: passing argument 1 of 'Sound_Callback' from incompatible pointer type [-Wincompatible-pointer-types]
  158 |       Sound_Callback(SNDBUF, 1024*2*2);
      |                      ^~~~~~
      |                      |
      |                      short int *
In file included from ./atari800/src/platform.h:11,
                 from libretro/core-mapper.c:4:
./atari800/src/sound.h:75:28: note: expected 'unsigned char *' but argument is of type 'short int *'
   75 | void Sound_Callback(UBYTE *buffer, unsigned int size);

short signed int SNDBUF[1024*2];

Sound_Callback(SNDBUF, 1024*2*2);

#ifdef SOUND_CALLBACK
/* Callback function to be called from platform-specific code. Fills audio
buffer BUFFER with SIZE bytes of audio samples. */
void Sound_Callback(UBYTE *buffer, unsigned int size);
#endif /* SOUND_CALLBACK */

@heitbaum
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant