I'm talking about the sound player in BIOS. It is used for all sounds, not just for the built-in sounds. It decrements the counter that determines the duration of notes every frame, so on NTSC consoles the sound durations are shorter. You could write your own sound player if you want.
I was actually not aware that there was one, I wrote a simple sound routine myself, just putting the values into the control register and the 24-bit shift registers as needed!