VirtualBox

Changeset 56023 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
May 22, 2015 9:41:16 AM (10 years ago)
Author:
vboxsync
Message:

DrvHostPulseAudio.cpp: Set the pointers to driver instance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r55920 r56023  
    8585        PDMAUDIOHSTSTRMIN  In;
    8686        PDMAUDIOHSTSTRMOUT Out;
    87     } hw;
     87    };
    8888    /** Pointer to driver instance. */
    8989    PDRVHOSTPULSEAUDIO     pDrv;
     
    556556                                                  uint32_t *pcSamples)
    557557{
    558     NOREF(pInterface);
     558    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    559559    AssertPtrReturn(pHstStrmOut, VERR_INVALID_POINTER);
    560560    AssertPtrReturn(pCfg, VERR_INVALID_POINTER);
    561561    /* pcSamples is optional. */
    562562
     563    PDRVHOSTPULSEAUDIO pDrv = PDMIHOSTAUDIO_2_DRVHOSTPULSEAUDIO(pInterface);
    563564    PPULSEAUDIOSTREAM pThisStrmOut = (PPULSEAUDIOSTREAM)pHstStrmOut;
    564565
     
    613614                    *pcSamples = cSamples;
    614615
     616                /* Save pointer to driver instance. */
     617                pThisStrmOut->pDrv = pDrv;
     618
    615619                LogFunc(("cbBuf=%RU32, cSamples=%RU32\n", cbBuf, cSamples));
    616620            }
     
    638642                                                 uint32_t *pcSamples)
    639643{
    640     NOREF(pInterface);
     644    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    641645    AssertPtrReturn(pHstStrmIn, VERR_INVALID_POINTER);
    642646    AssertPtrReturn(pCfg, VERR_INVALID_POINTER);
    643647    /* pcSamples is optional. */
    644648
     649    PDRVHOSTPULSEAUDIO pDrv = PDMIHOSTAUDIO_2_DRVHOSTPULSEAUDIO(pInterface);
    645650    PPULSEAUDIOSTREAM pThisStrmIn = (PPULSEAUDIOSTREAM)pHstStrmIn;
    646651
     
    683688        if (pcSamples)
    684689            *pcSamples = cSamples;
     690
     691        /* Save pointer to driver instance. */
     692        pThisStrmIn->pDrv = pDrv;
    685693
    686694        pThisStrmIn->pu8PeekBuf = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette