dirkwhoffmann / virtualc64

VirtualC64 is a cycle-accurate C64 emulator for macOS
https://dirkwhoffmann.github.io/virtualc64
Other
342 stars 33 forks source link

audio buffer fill level periodically drops to 0 #794

Closed mithrendal closed 1 month ago

mithrendal commented 1 month ago

Davids Midnight Magic

at this screen

IMG_6278

sound is silent in 4.7 which is normal I think

4.7

image

in 5.0b2 the fill level is periodically going down to 0 see picture below

5.0b2

image

everytime it hits fill level 0 it outputs a crackle sound. The intervall between the cracks is like 1 second ...

dirkwhoffmann commented 1 month ago
PNG-Bild

Thanks for reporting! Please enter host in RetroShell. I have a suspicion...

mithrendal commented 1 month ago
IMG_5551
dirkwhoffmann commented 1 month ago

OK, nailed it. When configuring my Mac to use a sample frequency of 48000 Hz, SID still runs with 44100 Hz. This can be seen in the RetroShell debugger:

PNG-Bild

For some reason, the virtual SID chips do not pick up the host sample rate. They always use the default sample rate which is set to 44100.

dirkwhoffmann commented 1 month ago

Fixed in v5.0b3