Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 1041 of file sound3d.c.
Referenced by PrimaryBufferImpl_QueryInterface().
{ IDirectSound3DListenerImpl *pdsl; TRACE("(%p,%p)\n",device,ppdsl); pdsl = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(*pdsl)); if (pdsl == NULL) { WARN("out of memory\n"); *ppdsl = 0; return DSERR_OUTOFMEMORY; } pdsl->ref = 0; pdsl->lpVtbl = &ds3dlvt; pdsl->device = device; pdsl->device->ds3dl.dwSize = sizeof(DS3DLISTENER); pdsl->device->ds3dl.vPosition.x = 0.0; pdsl->device->ds3dl.vPosition.y = 0.0; pdsl->device->ds3dl.vPosition.z = 0.0; pdsl->device->ds3dl.vVelocity.x = 0.0; pdsl->device->ds3dl.vVelocity.y = 0.0; pdsl->device->ds3dl.vVelocity.z = 0.0; pdsl->device->ds3dl.vOrientFront.x = 0.0; pdsl->device->ds3dl.vOrientFront.y = 0.0; pdsl->device->ds3dl.vOrientFront.z = 1.0; pdsl->device->ds3dl.vOrientTop.x = 0.0; pdsl->device->ds3dl.vOrientTop.y = 1.0; pdsl->device->ds3dl.vOrientTop.z = 0.0; pdsl->device->ds3dl.flDistanceFactor = DS3D_DEFAULTDISTANCEFACTOR; pdsl->device->ds3dl.flRolloffFactor = DS3D_DEFAULTROLLOFFFACTOR; pdsl->device->ds3dl.flDopplerFactor = DS3D_DEFAULTDOPPLERFACTOR; pdsl->device->ds3dl_need_recalc = TRUE; *ppdsl = pdsl; return S_OK; }