I notice that when I put this code:

Code:
...

snd_stop ( songHandle);

songHandle = snd_loop(sndWizMusic, 100, 0);

...



before this code:

Code:
c_scan(my.x,my.pan,vector(360,0,750),SCAN_ENTS | SCAN_FLAG2 | IGNORE_ME);



The music starts before the player reaches z = 2397 , but the music lasts even after the player is automatically moved and rotated.