Jump to content
  • Advertisement

Archived

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

tamlin

voice management?

This topic is 5718 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 all. I''m currently putting toghether my first even implementation of DirectSound in a game, and so far i have more or less copied some code from a basic DX 8.1 SDK sample and gotten it to work in my own code, and i have managed to create sound 16 sound buffers so that several instances of one sound can play simultaneously and overlap... the problem is, however, that i''m not getting this darn so-called voice management to work. how DOES it work, anyway? as far as i know i set all the flags and everyting as they are supposed to be set ... the buffer was created with the LOCDEFER flag, i tell it that it must use hardware so that i can use the voice management flags, and when i play the sound i set flags for hardware (again, just to be sure) and also with the DSBPLAY_TERMINATEBY_TIME flag. that should be it, right? but it doesn''t work. in the SDK documentation it says that if you tell a buffer to play while it''s already playing then it just keeps on playing, but if i can''t get around that with the TERMINATEBY_TIME flag then i don''t know what i''ve missed. help, please?

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!