Since this gets used by both the sound backend and the music code it needs to be in a place accessible to both.