From b8cb13c8542435ebce17f5fa514b1529259fb8f7 Mon Sep 17 00:00:00 2001 From: Not6 Date: Sun, 14 Feb 2016 13:08:49 +0100 Subject: [PATCH] snd, one more try... --- libretro/core-mapper.c | 11 ++++++----- libretro/platform.c | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libretro/core-mapper.c b/libretro/core-mapper.c index c259ed2..08c3d12 100644 --- a/libretro/core-mapper.c +++ b/libretro/core-mapper.c @@ -194,7 +194,7 @@ extern unsigned atari_devices[ 2 ]; #include "pokeysnd.h" extern int UI_is_active; -unsigned char SBUF[1024*2]; +//unsigned char SBUF[1024*2]; void retro_sound_update() { @@ -202,23 +202,24 @@ void retro_sound_update() if (! UI_is_active) { - POKEYSND_Process(SBUF,snd_sampler_pal/**2*/); + POKEYSND_Process(SNDBUF,snd_sampler_pal); 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*/); + retro_audio_cb(SNDBUF[x],SNDBUF[x]/*2*/); } diff --git a/libretro/platform.c b/libretro/platform.c index f3c1c39..c0e3edf 100644 --- a/libretro/platform.c +++ b/libretro/platform.c @@ -61,7 +61,7 @@ int skel_main(int argc, char **argv) printf("Failed to initialise!\n"); return 3; } - POKEYSND_Init(POKEYSND_FREQ_17_EXACT, 44100, 2, 0); + POKEYSND_Init(POKEYSND_FREQ_17_EXACT, 44100, 1, 1); retro_sound_finalized=1; printf("First retrun to main thread!\n");