Maybe you can try this: (?)

Code:
sound snd_test = <soundtest.wav>;

function example
{
snd_text = sound_vol=0;
ent_playloop(my,snd_test,500);
sleep(1);
snd_test = sound_vol=100;
}