Page 1 of 1

PostPosted: Nov 21, 2002 @ 4:25pm
by angedelamort

PostPosted: Nov 27, 2002 @ 3:43pm
by efortier
What I did was to create a thread that both fills the buffers and queue them for playing. The thread main loop calls a MIX() function then Sleep(1).

The thread is ABOVE_NORMAL in priority.

The MIX() function checks to see if a buffer is available, then fills and sends it to waveOutWrite().

The problem is that if I use anything besides Sleep(1), skips occur.

Q: Should I only use the thread to fill the buffers and put waveOutWrite() outside of the thread? Or in another thread?

Thanks!