Reduce the sound delay

This commit is contained in:
Ivan Izaguirre 2019-11-20 23:57:24 +01:00
parent fd13326367
commit 202f7b36ce
1 changed files with 1 additions and 1 deletions

View File

@ -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