VirtualBox

Changeset 88378 in vbox


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
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r88362 r88378  
    13681368
    13691369    /**
    1370      * Signals the backend that the host finished playing for this iteration. Optional.
    1371      *
    1372      * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    1373      * @param   pStream             Pointer to audio stream.
    1374      */
    1375     DECLR3CALLBACKMEMBER(void, pfnStreamPlayEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));
    1376 
    1377     /**
    1378      * Signals the backend that the host wants to begin capturing for this iteration. Optional.
    1379      *
    1380      * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    1381      * @param   pStream             Pointer to audio stream.
    1382      */
    1383     DECLR3CALLBACKMEMBER(void, pfnStreamCaptureBegin, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));
    1384 
    1385     /**
    13861370     * Captures (reads from) an audio (input) stream.
    13871371     *
     
    13981382                                                 void *pvBuf, uint32_t uBufSize, uint32_t *puRead));
    13991383
    1400     /**
    1401      * Signals the backend that the host finished capturing for this iteration. Optional.
    1402      *
    1403      * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    1404      * @param   pStream             Pointer to audio stream.
    1405      */
    1406     DECLR3CALLBACKMEMBER(void, pfnStreamCaptureEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));
    1407 
    14081384} PDMIHOSTAUDIO;
    14091385
    14101386/** PDMIHOSTAUDIO interface ID. */
    1411 #define PDMIHOSTAUDIO_IID                           "fafc2dfb-eaa8-4e8f-9d13-ffe9163e7c51"
     1387#define PDMIHOSTAUDIO_IID                           "cf8dcd5f-0077-499e-9db1-1161b046fded"
    14121388
    14131389
  • 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;
  • trunk/src/VBox/Main/src-client/DrvAudioRec.cpp

    r88362 r88378  
    11581158    pThis->IHostAudio.pfnGetDevices         = NULL;
    11591159    pThis->IHostAudio.pfnStreamGetPending   = NULL;
    1160     pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
    1161     pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
    1162     pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
    1163     pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
    11641160
    11651161    /*
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