ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

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;
}

Generated on Sun May 27 2012 05:02:40 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.