From 202f7b36ce5300dfa3991c46a721e9ca83e2ba91 Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Wed, 20 Nov 2019 23:57:24 +0100 Subject: [PATCH] Reduce the sound delay --- apple2sdl/sdlSpeaker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple2sdl/sdlSpeaker.go b/apple2sdl/sdlSpeaker.go index 98e413a..30dbc59 100644 --- a/apple2sdl/sdlSpeaker.go +++ b/apple2sdl/sdlSpeaker.go @@ -16,7 +16,7 @@ import ( const ( samplingHz = 48000 - bufferSize = 10000 + bufferSize = 1000 // bufferSize/samplingHz will be the max delay of the sound sampleDurationCycles = 1000000 * apple2.CPUClockMhz / samplingHz // each sample on the sound stream is 21.31 cpu cycles approx