int reps;
int i;
- memset ((void *)&sn, 0, sizeof (sn));
-
- shm = &sn;
-
+ memset(shm, 0, sizeof(*shm));
shm->channels = 2;
shm->samplebits = 16;
i = COM_CheckParm ("-sndspeed"); // LordHavoc: -sndspeed option
pDSBuf->lpVtbl->GetCurrentPosition(pDSBuf, &mmstarttime.u.sample, &dwWrite);
pDSBuf->lpVtbl->Play(pDSBuf, 0, 0, DSBPLAY_LOOPING);
- shm->soundalive = true;
- shm->splitbuffer = false;
shm->samples = gSndBufSize/(shm->samplebits/8);
shm->samplepos = 0;
- shm->submission_chunk = 1;
shm->buffer = (unsigned char *) lpData;
sample16 = (shm->samplebits/8) - 1;
snd_sent = 0;
snd_completed = 0;
- shm = &sn;
-
+ memset(shm, 0, sizeof(*shm));
shm->channels = 2;
shm->samplebits = 16;
i = COM_CheckParm ("-sndspeed"); // LordHavoc: -sndspeed option
}
}
- shm->soundalive = true;
- shm->splitbuffer = false;
shm->samples = gSndBufSize/(shm->samplebits/8);
shm->samplepos = 0;
- shm->submission_chunk = 1;
shm->buffer = (unsigned char *) lpData;
sample16 = (shm->samplebits/8) - 1;
{
#ifndef AKVERSION
Con_DPrintf ("Sound overrun\n");
-#endif
+#endif
break;
}
pDSBuf->lpVtbl->Unlock(pDSBuf, dsound_pbuf, dsound_dwSize, dsound_pbuf2, dsound_dwSize2);
}
-void S_Open(void)
-{
-}
-
-void S_Close(void)
-{
-}