Sign in to follow this  

Cannt apply 3D arithmetic to a streaming buffer?

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this