barotto / IBMulator

The IBM PS/1 emulator.
https://barotto.github.io/IBMulator
GNU General Public License v3.0
112 stars 4 forks source link

Audio desync using the PC Speaker #81

Closed barotto closed 6 months ago

barotto commented 6 months ago

The amount of audio samples generated by the PC Speaker appears to be off by a small amount, so after a while the PIT's channel 2 is active an excessive amount of data accumulates into the audio buffer and the audio sounds desynchronized. The speed and amount at which this desynchronization happen depend on the running program and seems to be faster the more complex the music is. Still unclear if the problem is the audio rendering routine or the PIT emulation.