/* Copyright status: this file is in the public domain. */ #include #include #include #include "blockade-snd.h" #include "blockade-snddata.h" extern char **argvec; static SNDSoundStruct *s[N_SOUNDS]; static int tag = 0; void setup_sound(void) { char *ptr; int size; int width; int n; int rv; for (n=0;n= N_SOUNDS)) abort(); if (tag == 0) return; /*SNDWait(tag);*/ tag ++; rv = SNDStartPlaying(s[n],tag,0,0,SND_NULL_FUN,SND_NULL_FUN); if (rv != SND_ERR_NONE) { fprintf(stderr,"%s: SNDStartPlaying: %s\n",argvec[0],SNDSoundError(rv)); return; } }