Archived

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

DirectSound object decreases frame rate

This topic is 5511 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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