From 747de446394c80bdf7a4ec960777491115c84514 Mon Sep 17 00:00:00 2001 From: Not6 Date: Sun, 14 Feb 2016 12:55:37 +0100 Subject: [PATCH] snd 3th try --- libretro/core-mapper.c | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/libretro/core-mapper.c b/libretro/core-mapper.c index 5f1dfbb..c259ed2 100644 --- a/libretro/core-mapper.c +++ b/libretro/core-mapper.c @@ -194,14 +194,35 @@ extern unsigned atari_devices[ 2 ]; #include "pokeysnd.h" extern int UI_is_active; +unsigned char SBUF[1024*2]; + void retro_sound_update() { - int x;//silent=POKEYSND_enable_new_pokey?24449:32768; + int x; if (! UI_is_active) { - POKEYSND_Process(SNDBUF,snd_sampler_pal*4); - for(x=0;x 32767) + smp = 32767; + else if (smp < -32768) + smp = -32768; +/* + if (smp2 > 32767) + smp2 = 32767; + else if (smp2 < -32768) + smp2 = -32768; +*/ + retro_audio_cb(smp,smp/*2*/); + + + } + } }