VirtualBox

Ignore:
Timestamp:
Jul 21, 2017 12:52:58 PM (7 years ago)
Author:
vboxsync
Message:

Build fix.

File:
1 edited

Legend:

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

    r65694 r68085  
    135135 */
    136136static DECLCALLBACK(int) drvHostNullAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    137                                                     const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     137                                                    const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten)
    138138{
    139139    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    140140    AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
    141141    AssertPtrReturn(pvBuf,      VERR_INVALID_POINTER);
    142     AssertReturn(cbBuf,         VERR_INVALID_PARAMETER);
     142    AssertReturn(cxBuf,         VERR_INVALID_PARAMETER);
    143143
    144144    RT_NOREF(pInterface, pStream, pvBuf);
     
    146146    /* Note: No copying of samples needed here, as this a NULL backend. */
    147147
    148     if (pcbWritten)
    149         *pcbWritten = cbBuf; /* Return all bytes as written. */
     148    if (pcxWritten)
     149        *pcxWritten = cxBuf; /* Return all bytes as written. */
    150150
    151151    return VINF_SUCCESS;
     
    157157 */
    158158static DECLCALLBACK(int) drvHostNullAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    159                                                        void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     159                                                       void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead)
    160160{
    161161    RT_NOREF(pInterface, pStream);
    162162
    163163    /* Return silence. */
    164     RT_BZERO(pvBuf, cbBuf);
    165 
    166     if (pcbRead)
    167         *pcbRead = cbBuf;
     164    RT_BZERO(pvBuf, cxBuf);
     165
     166    if (pcxRead)
     167        *pcxRead = cxBuf;
    168168
    169169    return VINF_SUCCESS;
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