VirtualBox

Changeset 88378 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 7, 2021 7:58:26 AM (4 years ago)
Author:
vboxsync
Message:

Audio: Removed unused pfnStream(Play|Capture)(Begin|End) methods from PDMIHOSTAUDIO. bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
9 edited

Legend:

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

    r88375 r88378  
    16481648    if (cFramesToPlay)
    16491649    {
    1650         if (pThis->pHostDrvAudio->pfnStreamPlayBegin)
    1651             pThis->pHostDrvAudio->pfnStreamPlayBegin(pThis->pHostDrvAudio, pStreamEx->pvBackend);
    1652 
    16531650        rc = drvAudioStreamPlayDoIt(pThis, pStreamEx, cFramesToPlay, pcFramesPlayed);
    1654 
    1655         if (pThis->pHostDrvAudio->pfnStreamPlayEnd)
    1656             pThis->pHostDrvAudio->pfnStreamPlayEnd(pThis->pHostDrvAudio, pStreamEx->pvBackend);
    16571651
    16581652        pStreamEx->nsLastPlayedCaptured = RTTimeNanoTS();
     
    19351929         * Do the actual capturing.
    19361930         */
    1937         if (pThis->pHostDrvAudio->pfnStreamCaptureBegin)
    1938             pThis->pHostDrvAudio->pfnStreamCaptureBegin(pThis->pHostDrvAudio, pStreamEx->pvBackend);
    1939 
    19401931        if (RT_LIKELY(pStreamEx->Host.Cfg.enmLayout == PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED))
    19411932            rc = drvAudioStreamCaptureNonInterleaved(pThis, pStreamEx, &cfCaptured);
     
    19441935        else
    19451936            AssertFailedStmt(rc = VERR_NOT_IMPLEMENTED);
    1946 
    1947         if (pThis->pHostDrvAudio->pfnStreamCaptureEnd)
    1948             pThis->pHostDrvAudio->pfnStreamCaptureEnd(pThis->pHostDrvAudio, pStreamEx->pvBackend);
    19491937
    19501938        if (RT_SUCCESS(rc))
     
    20772065    AssertPtrReturn(pHostDrvAudio->pfnStreamGetStatus, VERR_INVALID_POINTER);
    20782066    AssertPtrReturn(pHostDrvAudio->pfnStreamIterate, VERR_INVALID_POINTER);
    2079     AssertPtrNullReturn(pHostDrvAudio->pfnStreamPlayBegin, VERR_INVALID_POINTER);
    20802067    AssertPtrReturn(pHostDrvAudio->pfnStreamPlay, VERR_INVALID_POINTER);
    2081     AssertPtrNullReturn(pHostDrvAudio->pfnStreamPlayEnd, VERR_INVALID_POINTER);
    2082     AssertPtrNullReturn(pHostDrvAudio->pfnStreamCaptureBegin, VERR_INVALID_POINTER);
    20832068    AssertPtrReturn(pHostDrvAudio->pfnStreamCapture, VERR_INVALID_POINTER);
    2084     AssertPtrNullReturn(pHostDrvAudio->pfnStreamCaptureEnd, VERR_INVALID_POINTER);
    20852069
    20862070    /*
  • trunk/src/VBox/Devices/Audio/DrvHostAudioAlsa.cpp

    r88362 r88378  
    15061506    pThis->IHostAudio.pfnGetDevices         = NULL;
    15071507    pThis->IHostAudio.pfnStreamGetPending   = drvHostALSAStreamGetPending;
    1508     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    1509     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    1510     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    1511     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    15121508
    15131509    /*
  • trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp

    r88362 r88378  
    25652565    pThis->IHostAudio.pfnGetDevices         = drvHostCoreAudioHA_GetDevices;
    25662566    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    2567     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    2568     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    2569     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    2570     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    25712567
    25722568    int rc = RTCritSectInit(&pThis->CritSect);
  • trunk/src/VBox/Devices/Audio/DrvHostAudioDSound.cpp

    r88376 r88378  
    27082708    pThis->IHostAudio.pfnGetDevices         = drvHostDSoundHA_GetDevices;
    27092709    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    2710     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    2711     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    2712     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    2713     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    27142710
    27152711    /*
  • trunk/src/VBox/Devices/Audio/DrvHostAudioDebug.cpp

    r88362 r88378  
    424424    pThis->IHostAudio.pfnGetDevices         = NULL;
    425425    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    426     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    427     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    428     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    429     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    430426
    431427#ifdef VBOX_AUDIO_DEBUG_DUMP_PCM_DATA
  • trunk/src/VBox/Devices/Audio/DrvHostAudioNull.cpp

    r88362 r88378  
    362362    pThis->IHostAudio.pfnGetDevices         = NULL;
    363363    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    364     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    365     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    366     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    367     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    368364
    369365    return VINF_SUCCESS;
  • trunk/src/VBox/Devices/Audio/DrvHostAudioOss.cpp

    r88362 r88378  
    760760    pThis->IHostAudio.pfnGetDevices         = NULL;
    761761    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    762     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    763     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    764     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    765     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    766762
    767763    return VINF_SUCCESS;
  • trunk/src/VBox/Devices/Audio/DrvHostAudioPulseAudio.cpp

    r88362 r88378  
    17041704    pThis->IHostAudio.pfnGetDevices         = NULL;
    17051705    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    1706     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    1707     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    1708     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    1709     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    17101706
    17111707    int rc2 = CFGMR3QueryString(pCfg, "StreamName", pThis->szStreamName, sizeof(pThis->szStreamName));
  • trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp

    r88362 r88378  
    427427    pThis->IHostAudio.pfnGetDevices         = NULL;
    428428    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    429     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    430     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    431     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    432     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    433429
    434430    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