This topic is now archived and is closed to further replies.


DirectSound object decreases frame rate

Recommended Posts

Hi everybody. I am programming an arkanoid game. Once i create a thread in which a DirectSound object is to play using a midi file, the frames per minute decrease from 30 to 22. I use a class for soundtrack that includes the COM objects as protected variables. Then by calling an Initialize function i initialize the segment. Afterwards by using CreateThread i call a function to call segment->PlayMusic(). Then iot seems like a lot of CPU time is taken over by the music. Anybody has a solution to that? Cheers, c_gatzman

Share this post

Link to post
Share on other sites