Looping custom sound

Hi, I am making a backrooms server using datapacks for the gameplay, and I want to have the ambience to have a constant humming noise, so I made a 2 minute OGG and put it in the resource pack and it plays perfectly fine. But I want it to play and loop when the player enters the area. Right now I have a function that executes that sets the player up which I can use to start the loop, but from there I am lost. This needs to work for multiplayer.

Continue to help post