Jump to content
  • Advertisement
Sign in to follow this  

Cannt apply 3D arithmetic to a streaming buffer?

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

I create a buffer like this: ///////////////////////// DSBUFFERDESC ddsd; memset(&ddsd, NULL, sizeof(DSBUFFERDESC)); ddsd.dwSize = sizeof(DSBUFFERDESC); ddsd.dwBufferBytes = uBufSize; ddsd.dwFlags = DSBCAPS_CTRLPOSITIONNOTIFY | DSBCAPS_GETCURRENTPOSITION2; ddsd.dwFlags |= DSBCAPS_CTRL3D | DSBCAPS_CTRLVOLUME; ddsd.guid3DAlgorithm = DS3DALG_HRTF_LIGHT; HRESULT hr = pds->CreateSoundBuffer(&ddsd, &psb, NULL); //////////////////////// This code will take a error, the CreateSoundBuffer returned E_INVALIDARG, but if I remove the value of DSBCAPS_CTRLPOSITIONNOTIFY | DSBCAPS_GETCURRENTPOSITION2, the returned will be S_OK. Why the streaming buffer cannot apply the 3D arithmetic?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!