mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-08 20:05:13 +01:00
Set audio buffer size to snd.buffer_size * 2 * 2
This commit is contained in:
parent
832cb5939a
commit
e74ebc3027
@ -267,6 +267,7 @@ static const double ntsc_fps = 53693175.0 / (3420.0 * 262.0);
|
|||||||
static void init_audio(void)
|
static void init_audio(void)
|
||||||
{
|
{
|
||||||
audio_init(32000, vdp_pal ? pal_fps : ntsc_fps);
|
audio_init(32000, vdp_pal ? pal_fps : ntsc_fps);
|
||||||
|
soundbuffer = malloc(snd.buffer_size * 2 * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void configure_controls(void)
|
static void configure_controls(void)
|
||||||
@ -804,6 +805,9 @@ void retro_unload_game(void)
|
|||||||
{
|
{
|
||||||
if (system_hw == SYSTEM_MCD)
|
if (system_hw == SYSTEM_MCD)
|
||||||
slot_autosave(0);
|
slot_autosave(0);
|
||||||
|
|
||||||
|
if (soundbuffer)
|
||||||
|
free(soundbuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned retro_get_region(void) { return vdp_pal ? RETRO_REGION_PAL : RETRO_REGION_NTSC; }
|
unsigned retro_get_region(void) { return vdp_pal ? RETRO_REGION_PAL : RETRO_REGION_NTSC; }
|
||||||
@ -907,7 +911,7 @@ void retro_deinit(void)
|
|||||||
|
|
||||||
void retro_reset(void) { gen_reset(0); }
|
void retro_reset(void) { gen_reset(0); }
|
||||||
|
|
||||||
int16 soundbuffer[1920];
|
int16 *soundbuffer;
|
||||||
|
|
||||||
void osd_input_update(void)
|
void osd_input_update(void)
|
||||||
{
|
{
|
||||||
|
@ -104,7 +104,7 @@ extern char MS_BIOS_US[256];
|
|||||||
extern char MS_BIOS_EU[256];
|
extern char MS_BIOS_EU[256];
|
||||||
extern char MS_BIOS_JP[256];
|
extern char MS_BIOS_JP[256];
|
||||||
|
|
||||||
extern int16 soundbuffer[1920];
|
extern int16 *soundbuffer;
|
||||||
|
|
||||||
#define VERSION "Genesis Plus GX 1.7.0 (libretro)"
|
#define VERSION "Genesis Plus GX 1.7.0 (libretro)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user