This routine plays any resource that is of type SOUND. Care should be taken not
to include samples (.WAV files) that are more than a few seconds for two
reasons. 1) the sample occupies memory and 2) the routine is synchronous and
will halt all other output until the sample has completed playback. It is
necessary to supply a valid resource name to this routine.
Include in the resource section of your program:
MYWAVE SOUND "dogbark.wav"
In the code section:
res=PLAY_SOUND_RESOURCE@( 'MYWAVE' )