Merge pull request #307 from alexkiri/sdl_build_fix

Fix SDL build
This commit is contained in:
ds22x 2022-08-13 13:51:17 +02:00 committed by GitHub
commit c9b24e6de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -365,6 +365,7 @@ void sound_init( void )
/* Initialize PSG chip */
psg_init((system_hw == SYSTEM_SG) ? PSG_DISCRETE : PSG_INTEGRATED);
#ifdef __LIBRETRO__
if (audio_hard_disable)
{
/* Dummy audio callbacks for audio hard disable */
@ -374,6 +375,7 @@ void sound_init( void )
fm_read = NULL_fm_read;
return;
}
#endif
}
void sound_reset(void)
@ -393,6 +395,7 @@ void sound_reset(void)
fm_cycles_start = fm_cycles_count = 0;
}
#ifdef __LIBRETRO__
void sound_update_fm_function_pointers(void)
{
/* Only set function pointers for YM_Update, fm_reset, fm_write, fm_read */
@ -437,6 +440,7 @@ void sound_update_fm_function_pointers(void)
fm_read = NULL;
}
}
#endif
int sound_update(unsigned int cycles)
{

View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdbool.h>
#include <time.h>
#include <stdlib.h>