summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2014-12-09 05:47:45 +0100
committeraliaspider2014-12-09 05:47:45 +0100
commita859afadfdbdc1449d039f66b957487342ef8e1a (patch)
treee82676339055897991b0dd07c637ae3af8c60bb5
parentcd185c849b428b2d673fe94809b3ec62f376c0cb (diff)
downloadpicogpsp-a859afadfdbdc1449d039f66b957487342ef8e1a.tar.gz
picogpsp-a859afadfdbdc1449d039f66b957487342ef8e1a.tar.bz2
picogpsp-a859afadfdbdc1449d039f66b957487342ef8e1a.zip
fix sound
-rw-r--r--Makefile2
-rw-r--r--sound.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0297ace..6d5b019 100644
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ cpu_threaded.o: cpu_threaded.c
$(CC) -c -o $@ $< $(ASFLAGS) $(OPTIMIZE)
clean:
-# rm -f main.o cpu.o memory.o video.o input.o sound.o cpu_threaded.o x86_stub.o cheats.o zip.o libretro.o
+# rm -f main.o memory.o input.o sound.o cpu_threaded.o x86_stub.o cheats.o zip.o libretro.o
rm -f $(OBJS)
rm -f $(TARGET)
diff --git a/sound.c b/sound.c
index 5d7d475..8e1f261 100644
--- a/sound.c
+++ b/sound.c
@@ -847,16 +847,14 @@ void retro_set_audio_sample_batch(retro_audio_sample_batch_t cb) { audio_batch_c
void render_audio(void)
{
- static s16 stream_base[1024];
+ static s16 stream_base[512];
u32 _length;
s16 *source;
u32 i;
s32 current_sample;
-// return;
-
while (((gbc_sound_buffer_index - sound_buffer_base) & BUFFER_SIZE_MASK) > 512) {
- sound_copy(sound_buffer_base, 512, normal);
+ sound_copy(sound_buffer_base, 1024, normal);
audio_batch_cb(stream_base, 256);
sound_buffer_base += 512;
sound_buffer_base &= BUFFER_SIZE_MASK;