This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Sound mixer question


Postby angedelamort » Nov 21, 2002 @ 4:25pm

User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby efortier » Nov 27, 2002 @ 3:43pm

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!
User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron