Lines Matching defs:pDSB
77 LPDIRECTSOUNDBUFFER pDSB;
178 static int dsoundPlayRestore(LPDIRECTSOUNDBUFFER pDSB)
180 HRESULT hr = IDirectSoundBuffer_Restore(pDSB);
188 static int dsoundUnlockOutput(LPDIRECTSOUNDBUFFER pDSB,
192 HRESULT hr = IDirectSoundBuffer_Unlock(pDSB, pv1, cb1, pv2, cb2);
212 static int dsoundLockOutput(LPDIRECTSOUNDBUFFER pDSB, PDMPCMPROPS *pProps,
225 HRESULT hr = IDirectSoundBuffer_Lock(pDSB, dwOffset, dwBytes, &pv1, &cb1, &pv2, &cb2, dwFlags);
228 rc = dsoundPlayRestore(pDSB);
231 hr = IDirectSoundBuffer_Lock(pDSB, dwOffset, dwBytes, &pv1, &cb1, &pv2, &cb2, dwFlags);
245 dsoundUnlockOutput(pDSB, pv1, pv2, cb1, cb2);
351 DSLOG(("DSound: playback close %p buffer %p\n", pDSoundStrmOut, pDSoundStrmOut->pDSB));
353 if (pDSoundStrmOut->pDSB)
355 HRESULT hr = IDirectSoundBuffer_Stop(pDSoundStrmOut->pDSB);
361 IDirectSoundBuffer_Release(pDSoundStrmOut->pDSB);
362 pDSoundStrmOut->pDSB = NULL;
378 if (pDSoundStrmOut->pDSB != NULL)
405 &bd, &pDSoundStrmOut->pDSB, NULL);
414 hr = IDirectSoundBuffer_GetFormat(pDSoundStrmOut->pDSB, &wfx, sizeof(wfx), NULL);
424 hr = IDirectSoundBuffer_GetCaps(pDSoundStrmOut->pDSB, &bc);
479 int rc = dsoundLockOutput(pDSoundStrmOut->pDSB, &pDSoundStrmOut->hw.Props,
493 dsoundUnlockOutput(pDSoundStrmOut->pDSB, pv1, pv2, cb1, cb2);
497 static int dsoundPlayGetStatus(LPDIRECTSOUNDBUFFER pDSB, DWORD *pStatus)
502 HRESULT hr = IDirectSoundBuffer_GetStatus(pDSB, &dwStatus);
507 rc = dsoundPlayRestore(pDSB);
510 hr = IDirectSoundBuffer_GetStatus(pDSB, &dwStatus);
534 if (pDSoundStrmOut->pDSB != NULL)
538 dsoundPlayGetStatus(pDSoundStrmOut->pDSB, &dwStatus);
542 HRESULT hr = IDirectSoundBuffer_Stop(pDSoundStrmOut->pDSB);
554 if (pDSoundStrmOut->pDSB != NULL)
557 int rc = dsoundPlayGetStatus(pDSoundStrmOut->pDSB, &dwStatus);
576 HRESULT hr = IDirectSoundBuffer_Play(pDSoundStrmOut->pDSB, 0, 0, DSBPLAY_LOOPING);
997 pDSoundStrmOut->pDSB = NULL;
1066 LPDIRECTSOUNDBUFFER pDSB = pDSoundStrmOut->pDSB;
1070 if (!pDSB)
1081 HRESULT hr = IDirectSoundBuffer_GetCurrentPosition(pDSB, &cbPlayPos, &cbWritePos);
1084 rc = dsoundPlayRestore(pDSB);
1092 hr = IDirectSoundBuffer_GetCurrentPosition(pDSB, &cbPlayPos, &cbWritePos);
1152 rc = dsoundLockOutput(pDSB, &pHstStrmOut->Props, cbPlayWritePos, cbLive,
1183 dsoundUnlockOutput(pDSB, pv1, pv2, cb1, cb2);