unsigned int SndSys_GetSoundTime (void)
{
unsigned int factor;
- MMRESULT res;
- MMTIME mmtime;
factor = snd_renderbuffer->format.width * snd_renderbuffer->format.channels;
if (wav_init)
{
- /*
// Find which sound blocks have completed
for (;;)
{
}
return (snd_completed * wav_buffer_size) / factor;
- */
+
+ /*
+ * S_PaintAndSubmit: WARNING: newsoundtime (soundtime (275 < 134217707)
+ * apparently this sound time wraps quite early?
+ {
+ MMRESULT res;
+ MMTIME mmtime;
mmtime.wType = TIME_SAMPLES;
res = waveOutGetPosition(hWaveOut, &mmtime, sizeof(mmtime));
if(res == MMSYSERR_NOERROR)
return mmtime.u.sample;
+ }
+ */
}
return 0;