Reduce the sound delay

This commit is contained in:
Ivan Izaguirre 2019-11-20 23:57:24 +01:00
parent fd13326367
commit 202f7b36ce

View File

@ -16,7 +16,7 @@ import (
const ( const (
samplingHz = 48000 samplingHz = 48000
bufferSize = 10000 bufferSize = 1000
// bufferSize/samplingHz will be the max delay of the sound // bufferSize/samplingHz will be the max delay of the sound
sampleDurationCycles = 1000000 * apple2.CPUClockMhz / samplingHz sampleDurationCycles = 1000000 * apple2.CPUClockMhz / samplingHz
// each sample on the sound stream is 21.31 cpu cycles approx // each sample on the sound stream is 21.31 cpu cycles approx