Home
last modified time | relevance | path

Searched refs:dsb (Results 1 – 7 of 7) sorted by relevance

/reactos/dll/directx/wine/dsound/
H A Dmixer.c148 dsb->freqAcc = dsb->freqAccNext; in DSOUND_RecalcFreqAcc()
149 dsb->tmp_buffer_len = DSOUND_secpos_to_bufpos(dsb, dsb->buflen, 0, &dsb->freqAccNext); in DSOUND_RecalcFreqAcc()
178 dsb->writelead = (dsb->freq / 100) * dsb->pwfx->nBlockAlign; in DSOUND_RecalcFormat()
185 dsb->max_buffer_len = dsb->freqAcc = dsb->freqAccNext = 0; in DSOUND_RecalcFormat()
209 else dsb->max_buffer_len = dsb->tmp_buffer_len = dsb->buflen; in DSOUND_RecalcFormat()
232 dsb, dsb->buflen, playpos, len); in DSOUND_CheckEvent()
416 LPBYTE mem = (dsb->tmp_buffer ? dsb->tmp_buffer : dsb->buffer->memory) + dsb->buf_mixpos; in DSOUND_MixerVol()
502 BYTE *ibuf = (dsb->tmp_buffer ? dsb->tmp_buffer : dsb->buffer->memory) + dsb->buf_mixpos, *volbuf; in DSOUND_MixInBuffer()
517 …DSOUND_MixToTemporary(dsb, dsb->sec_mixpos, DSOUND_bufpos_to_secpos(dsb, dsb->buf_mixpos+len) - ds… in DSOUND_MixInBuffer()
552 dsb->sec_mixpos = DSOUND_bufpos_to_secpos(dsb, dsb->buf_mixpos); in DSOUND_MixInBuffer()
[all …]
H A Dsound3d.c156 TRACE("(%p)\n",dsb); in DSOUND_Calc3DBuffer()
204 …if (dsb->ds3db_ds3db.vConeOrientation.x == 0 && dsb->ds3db_ds3db.vConeOrientation.y == 0 && dsb->d… in DSOUND_Calc3DBuffer()
213 if (dsb->ds3db_ds3db.dwInsideConeAngle != dsb->ds3db_ds3db.dwOutsideConeAngle) in DSOUND_Calc3DBuffer()
236 if (dsb->device->ds3dl.vPosition.x == dsb->ds3db_ds3db.vPosition.x && in DSOUND_Calc3DBuffer()
237 dsb->device->ds3dl.vPosition.y == dsb->ds3db_ds3db.vPosition.y && in DSOUND_Calc3DBuffer()
238 dsb->device->ds3dl.vPosition.z == dsb->ds3db_ds3db.vPosition.z) { in DSOUND_Calc3DBuffer()
239 dsb->volpan.lPan = 0; in DSOUND_Calc3DBuffer()
275 dsb->freq = flFreq; in DSOUND_Calc3DBuffer()
277 DSOUND_MixToTemporary(dsb, 0, dsb->buflen); in DSOUND_Calc3DBuffer()
287 TRACE("(%p)\n",dsb); in DSOUND_Mix3DBuffer()
[all …]
H A Dbuffer.c147 dsn->dsb = dsb; in IDirectSoundNotifyImpl_Create()
1039 &(dsb->buflen),&(dsb->buffer->memory), in IDirectSoundBufferImpl_Create()
1056 list_add_head(&dsb->buffer->buffers, &dsb->entry); in IDirectSoundBufferImpl_Create()
1061 dsb->buf_mixpos = dsb->sec_mixpos = 0; in IDirectSoundBufferImpl_Create()
1065 dsb->nAvgBytesPerSec = dsb->freq * in IDirectSoundBufferImpl_Create()
1178 dsb = HeapAlloc(GetProcessHeap(),0,sizeof(*dsb)); in IDirectSoundBufferImpl_Duplicate()
1184 CopyMemory(dsb, pdsb, sizeof(*dsb)); in IDirectSoundBufferImpl_Duplicate()
1208 list_add_head(&dsb->buffer->buffers, &dsb->entry); in IDirectSoundBufferImpl_Duplicate()
1212 dsb->buf_mixpos = dsb->sec_mixpos = 0; in IDirectSoundBufferImpl_Duplicate()
1221 DSOUND_MixToTemporary(dsb, 0, dsb->buflen, FALSE); in IDirectSoundBufferImpl_Duplicate()
[all …]
H A Ddsound_private.h322 IDirectSoundBufferImpl* dsb; member
326 IDirectSoundBufferImpl *dsb,
342 IDirectSoundBufferImpl* dsb; member
346 IDirectSoundBufferImpl *dsb,
380 void DSOUND_CheckEvent(const IDirectSoundBufferImpl *dsb, DWORD playpos, int len) DECLSPEC_HIDDEN;
383 void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN;
384 void DSOUND_MixToTemporary(const IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mixlen, BOOL in…
385 DWORD DSOUND_secpos_to_bufpos(const IDirectSoundBufferImpl *dsb, DWORD secpos, DWORD secmixpos, DWO…
392 void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb) DECLSPEC_HIDDEN;
H A Dprimary.c584 DSOUND_RecalcFormat((*dsb)); in primarybuffer_SetFormat()
585 DSOUND_MixToTemporary((*dsb), 0, (*dsb)->buflen, FALSE); in primarybuffer_SetFormat()
586 (*dsb)->primary_mixpos = 0; in primarybuffer_SetFormat()
1226 IDirectSoundBufferImpl *dsb; in primarybuffer_create() local
1235 dsb = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(*dsb)); in primarybuffer_create()
1237 if (dsb == NULL) { in primarybuffer_create()
1243 dsb->ref = 1; in primarybuffer_create()
1244 dsb->numIfaces = 1; in primarybuffer_create()
1245 dsb->device = device; in primarybuffer_create()
1247 dsb->dsbd = *dsbd; in primarybuffer_create()
[all …]
H A Ddsound.c1547 IDirectSoundBufferImpl * dsb; in DirectSoundDevice_CreateSoundBuffer() local
1611 hres = IDirectSoundBufferImpl_Create(device, &dsb, dsbd); in DirectSoundDevice_CreateSoundBuffer()
1612 if (dsb) in DirectSoundDevice_CreateSoundBuffer()
1613 *ppdsb = (IDirectSoundBuffer*)&dsb->IDirectSoundBuffer8_iface; in DirectSoundDevice_CreateSoundBuffer()
1627 IDirectSoundBufferImpl* dsb; in DirectSoundDevice_DuplicateSoundBuffer() local
1653 hres = IDirectSoundBufferImpl_Duplicate(device, &dsb, (IDirectSoundBufferImpl*)psb); in DirectSoundDevice_DuplicateSoundBuffer()
1655 *ppdsb = (IDirectSoundBuffer*)&dsb->IDirectSoundBuffer8_iface; in DirectSoundDevice_DuplicateSoundBuffer()
/reactos/modules/rostests/winetests/dsound/
H A Ddsound.c1047 static HRESULT test_notify(LPDIRECTSOUNDBUFFER dsb, in test_notify() argument
1054 rc=IDirectSoundBuffer_SetCurrentPosition(dsb,0); in test_notify()
1060 rc=IDirectSoundBuffer_Play(dsb,0,0,0); in test_notify()
1065 rc=IDirectSoundBuffer_Stop(dsb); in test_notify()