Advertisement

DirectMusic break DirectSound streaming

Started by July 17, 2007 06:55 PM
1 comment, last by katsh 17 years, 6 months ago
hi i do streaming playing with directsound. it work fine. but since i put directmusic and do DirectMusic::InitAudio() method, directsound cant stream correctly. the cause is event message from thread that was created for streaming. before calling DirectMusic::InitAudio(), event message comes correctly. but once call DirectMusic::InitAudio(), event message comes too much more than expected. does any1 knows what is real cause, and how to solve this? thx, Best.
Honestly, I've not worked with DirectMusic in quite some time but it seems to me that during creation of the DirectMusicPerformance COM object you must pass a valid pointer from a working DirectSound COM object if you are using DirectSound. This would be the first place to check. From my own experience I know that DirectMusic has some nasty bugs. This might be one of them. [sad]

Now for the answer you don't want: I must ask why you are using DirectMusic. Quite frankly it is a monster of an API with many elements that just shouldn't exist. Microsoft doesn't support or even suggest the use of it anymore. And in my opinion it is just too bulky and full of too many bugs. I would strongly suggest you stick to DirectSound. Heck, aside from the learning experience, even DirectSound isn't all that great of a choice if you just want to get sounds up and playing. Perhaps XACT, FMOD, or even some Windows media services would be a better choice.
Advertisement
first of all, thanx for reply.
i understood your comment.
well, the reason why i (have to) use directmusic is i am making sound library that can MIDI as well.
yes i dont like directmusic,so i prefer dont use directmusic if possible.

btw,i found the cause.
its driver issue.
it can say "bug" yea.

switching hardware-mixing to software one sole this problem.

thx

This topic is closed to new replies.

Advertisement