use snd_loop() and when the sound has played long enough, then use snd_stop().
This way you can tune the frequency as you wish without having to worry about playback length.