Jump to content
  • Advertisement
Sign in to follow this  

Cannt apply 3D arithmetic to a streaming buffer?

This topic is 4607 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!