VirtualBox

Changeset 68085 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jul 21, 2017 12:52:58 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117124
Message:

Build fix.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp

    r68046 r68085  
    220220 */
    221221static DECLCALLBACK(int) drvAudioVRDEStreamCapture(PPDMIHOSTAUDIO pInterface,
    222                                                    PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     222                                                   PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead)
    223223{
    224224    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    225225    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
    226226    AssertPtrReturn(pvBuf,      VERR_INVALID_POINTER);
    227     AssertReturn(cbBuf,         VERR_INVALID_PARAMETER);
    228     /* pcbRead is optional. */
     227    AssertReturn(cxBuf,         VERR_INVALID_PARAMETER);
     228    /* pcxRead is optional. */
    229229
    230230    PVRDESTREAM pStreamVRDE = (PVRDESTREAM)pStream;
     
    236236        void *pvData;
    237237
    238         RTCircBufAcquireReadBlock(pStreamVRDE->In.pCircBuf, cbBuf, &pvData, &cbData);
     238        RTCircBufAcquireReadBlock(pStreamVRDE->In.pCircBuf, cxBuf, &pvData, &cbData);
    239239
    240240        if (cbData)
     
    244244    }
    245245
    246     if (pcbRead)
    247         *pcbRead = (uint32_t)cbData;
     246    if (pcxRead)
     247        *pcxRead = (uint32_t)cbData;
    248248
    249249    return VINF_SUCCESS;
     
    255255 */
    256256static DECLCALLBACK(int) drvAudioVRDEStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    257                                                 const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     257                                                const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten)
    258258{
    259259    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    260260    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
    261261    AssertPtrReturn(pvBuf,      VERR_INVALID_POINTER);
    262     AssertReturn(cbBuf,         VERR_INVALID_PARAMETER);
    263     /* pcbWritten is optional. */
     262    AssertReturn(cxBuf,         VERR_INVALID_PARAMETER);
     263    /* pcxWritten is optional. */
    264264
    265265    PDRVAUDIOVRDE pDrv        = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio);
     
    271271    /* Note: We get the number of *samples* in cbBuf
    272272     *       (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout) on stream creation. */
    273     uint32_t csLive           = cbBuf;
     273    uint32_t csLive           = cxBuf;
    274274
    275275    PPDMAUDIOPCMPROPS pProps  = &pStreamVRDE->pCfg->Props;
     
    328328        /* Return samples instead of bytes here
    329329         * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout). */
    330         if (pcbWritten)
    331             *pcbWritten = csWritten;
     330        if (pcxWritten)
     331            *pcxWritten = csWritten;
    332332    }
    333333
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r67914 r68085  
    508508 */
    509509static DECLCALLBACK(int) drvAudioVideoRecStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    510                                                        void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    511 {
    512     RT_NOREF(pInterface, pStream, pvBuf, cbBuf);
    513 
    514     if (pcbRead)
    515         *pcbRead = 0;
     510                                                       void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead)
     511{
     512    RT_NOREF(pInterface, pStream, pvBuf, cxBuf);
     513
     514    if (pcxRead)
     515        *pcxRead = 0;
    516516
    517517    return VINF_SUCCESS;
     
    523523 */
    524524static DECLCALLBACK(int) drvAudioVideoRecStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    525                                                     const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     525                                                    const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten)
    526526{
    527527    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    528528    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
    529529    AssertPtrReturn(pvBuf,      VERR_INVALID_POINTER);
    530     AssertReturn(cbBuf,         VERR_INVALID_PARAMETER);
    531     /* pcbWritten is optional. */
     530    AssertReturn(cxBuf,         VERR_INVALID_PARAMETER);
     531    /* pcxWritten is optional. */
    532532
    533533    PDRVAUDIOVIDEOREC pThis     = PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface);
     
    551551    size_t cbCircBuf;
    552552
    553     uint32_t cbToWrite = cbBuf;
     553    uint32_t cbToWrite = cxBuf;
    554554
    555555    /*
     
    692692     * encoder actually did process those.
    693693     */
    694     if (pcbWritten)
    695         *pcbWritten = cbWrittenTotal;
     694    if (pcxWritten)
     695        *pcxWritten = cbWrittenTotal;
    696696
    697697    LogFlowFunc(("csReadTotal=%RU32, rc=%Rrc\n", cbWrittenTotal, rc));
Note: See TracChangeset for help on using the changeset viewer.

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