• Advertisement

Archived

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

DirectMusic and multithreading

This topic is 4974 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

Hello Group, I am having trouble with DirectMusic. Our app. uses 2 separate threads, one for resource loading another for main. IDirectMusicSegment objects, loaded on loader thread are not playing in main thread. No errors are returned, just silence. If I try to play sound in loader thread (immidiately after load) sound''s playing well. Please help! Vytautas

Share this post


Link to post
Share on other sites
Advertisement
If the sound is global data, do you have your mutexes (or critical sections) in the correct places?

Share this post


Link to post
Share on other sites
Sounds are not touched before loading completes anyway. However, having in mind that we can''t actually know what direct music does....

anyway, I found out that the problem is in performance objects. If I create and intitialize them on loader thread, I get no sound. But if I do that on main thread (sounds are loaded on loader thread) everything works well.

Share this post


Link to post
Share on other sites

  • Advertisement