I don't completely understand how the scsp timers work; "8192" is a magic number I came up with by experimentation.
The sound_cpu example works consistently on all emulators and real hardware now.