Win32->DOS communication
Win32->DOS communication
I''m writing a bit of Music/Sound (windows - Masm32) code that accepts commands from a DOS app and allows it to use the services of DirectSound etc. This has been attempted befor (DS4QB by Nekrophidius)but there was a problem: there is occasionally a slight delay when sending the data to the Windows app (or, "slave"). I also have this problem.
This is how it works: The Win32 slave continually loops, polling for commands from the DOS app (btw - you don''t want to *know* how they''re communicating, it uses a hardware port - nasty hack!) When it receives one, it carries out the request; Load & play an MP3/MOD etc .. This is ok except when you want to play a WAV sample. Usually, when you send the request to play a sample, it responds immediately but occasionally (say once in 10) there is a slight delay, sometimes up to half a second. It has been mentioned that it may have something to do with time-slice allocation (I *think* I''ve worded that correctly . If it is, can it be changed, dynamically, from inside the Win32 app? Btw - I''m using MASM32 in a *very* tight loop and there is no window, so no Messages.
I can''t figure it out and it''s giving me a headache!
Any suggestions?
Thanks!
"You say I''m a bitch like it''s a *bad* thing..."[email=alanetcetc@hotmail.com]Mail[/email] Site
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement