I remember one action game on the Apple II that played music during gameplay: Microwave. But the sound was made on purpose to sound kind of choppy (a bit like voice fry), so that there was some leeway to fit graphics updates and calculations. I never disassembled it but I can imagine the pain it must have been to keep the game loop close to constant time.