{
if(developer.integer >= 1000)
Con_Print("waveOutWrite failed (too much sound data)\n");
+ //h->dwFlags |= WHDR_DONE;
+ //snd_sent++;
}
else
{
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;
+ */
+
+ mmtime.wType = TIME_SAMPLES;
+ res = waveOutGetPosition(hWaveOut, &mmtime, sizeof(mmtime));
+ if(res == MMSYSERR_NOERROR)
+ return mmtime.u.sample;
}
return 0;