VirtualBox

Changeset 88468 in vbox


Ignore:
Timestamp:
Apr 12, 2021 12:08:08 PM (3 years ago)
Author:
vboxsync
Message:

DrvHostAudioCoreAudio.cpp: doxygen fix++. bugref:9890

File:
1 edited

Legend:

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

    r88391 r88468  
    18981898 */
    18991899static DECLCALLBACK(int) drvHostCoreAudioHA_StreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    1900                                                           void *pvBuf, uint32_t uBufSize, uint32_t *puRead)
     1900                                                          void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    19011901{
    19021902    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
    1903     AssertPtrReturn(pStream,    VERR_INVALID_POINTER);
    1904     /* puRead is optional. */
     1903    AssertPtrReturn(pStream, VERR_INVALID_POINTER);
     1904    AssertPtrReturn(pcbRead, VERR_INVALID_POINTER);
    19051905
    19061906    PCOREAUDIOSTREAM  pCAStream = (PCOREAUDIOSTREAM)pStream;
     
    19271927    if (ASMAtomicReadU32(&pCAStream->enmStatus) != COREAUDIOSTATUS_INIT)
    19281928    {
    1929         if (puRead)
    1930             *puRead = 0;
     1929        *pcbRead = 0;
    19311930        return VINF_SUCCESS;
    19321931    }
     
    19411940    do
    19421941    {
    1943         size_t cbToWrite = RT_MIN(uBufSize, RTCircBufUsed(pCAStream->pCircBuf));
     1942        size_t cbToWrite = RT_MIN(cbBuf, RTCircBufUsed(pCAStream->pCircBuf));
    19441943
    19451944        uint8_t *pvChunk;
     
    19731972
    19741973    if (RT_SUCCESS(rc))
    1975     {
    1976         if (puRead)
    1977             *puRead = cbReadTotal;
    1978     }
     1974        *pcbRead = cbReadTotal;
    19791975
    19801976    return rc;
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