DirectMusic

Started by
2 comments, last by DividedByZero 16 years ago
I'm using DirectMusic for some sound. I know how to change the master volume using LPDirectMusicPerformance8, but how can you change the volume of a LPDirectMusicSegment8? Thanks in advance.
Advertisement
Don't quote me on this, but as far as I can see, you can't. You might have to re-adjust the volume for each sound you play.
<random advice without checking documentation or anything>
I seem to recall there's a way to get the IDirectSoundBuffer8 interface that's used by a segment (If there's not an actual function, try QueryInterface), and you can adjust the volume on that. Then again, I could be making stuff up. I've used DirectMusic for a total of 2 hours...
</random advice without checking documentation or anything>
DirectSound is pretty easy to implement and you have greater control over your audio, including 3D sound (if you need that sort of thing).

Besides, DirectMusic has become depreciated and as far as I know is not supported on Vista. Although, my old DirectMusic code seems to run happily.

This topic is closed to new replies.

Advertisement