VirtualBox

Changeset 73838 in vbox


Ignore:
Timestamp:
Aug 22, 2018 4:15:08 PM (6 years ago)
Author:
vboxsync
Message:

Audio: Added the backend's (friendly) name into the backend configuration.

Location:
trunk
Files:
12 edited

Legend:

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

    r73653 r73838  
    344344typedef struct PDMAUDIOBACKENDCFG
    345345{
     346    /** The backend's friendly name. */
     347    char     szName[32];
    346348    /** Size (in bytes) of the host backend's audio output stream structure. */
    347349    size_t   cbStreamOut;
  • trunk/src/VBox/Devices/Audio/DevHDA.cpp

    r73833 r73838  
    24472447                    PDMAUDIOBACKENDCFG Cfg;
    24482448                    rc = pDrv->pConnector->pfnGetConfig(pDrv->pConnector, &Cfg);
    2449                     if (   RT_SUCCESS(rc)
    2450                         && Cfg.cMaxStreamsIn) /* At least one input source available? */
     2449                    if (RT_SUCCESS(rc))
    24512450                    {
    2452                         rc = AudioMixerSinkSetRecordingSource(pMixSink, pMixStrm);
    2453                         LogFlowFunc(("LUN#%RU8: Recording source is now '%s', rc=%Rrc\n", pDrv->uLUN, pStreamCfg->szName, rc));
    2454                         LogRel2(("HDA: Set recording source to '%s' (LUN#%RU8)\n", pStreamCfg->szName, pDrv->uLUN));
     2451                        if (Cfg.cMaxStreamsIn) /* At least one input source available? */
     2452                        {
     2453                            rc = AudioMixerSinkSetRecordingSource(pMixSink, pMixStrm);
     2454                            LogFlowFunc(("LUN#%RU8: Recording source for '%s' -> '%s', rc=%Rrc\n",
     2455                                         pDrv->uLUN, pStreamCfg->szName, Cfg.szName, rc));
     2456
     2457                            if (RT_SUCCESS(rc))
     2458                                LogRel(("HDA: Set recording source for '%s' to '%s'\n",
     2459                                        pStreamCfg->szName, Cfg.szName));
     2460                        }
     2461                        else
     2462                            LogRel(("HDA: Backend '%s' currently is not offering any recording source for '%s', muting\n",
     2463                                    Cfg.szName, pStreamCfg->szName));
    24552464                    }
    24562465                    else if (RT_FAILURE(rc))
    2457                         LogFunc(("LUN#%RU8: Unable to retrieve backend configuratio for '%s', rc=%Rrc\n",
     2466                        LogFunc(("LUN#%RU8: Unable to retrieve backend configuration for '%s', rc=%Rrc\n",
    24582467                                 pDrv->uLUN, pStreamCfg->szName, rc));
    24592468                }
  • trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp

    r73689 r73838  
    11621162    RT_NOREF(pInterface);
    11631163    AssertPtrReturn(pBackendCfg, VERR_INVALID_POINTER);
     1164
     1165    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "ALSA audio driver");
    11641166
    11651167    pBackendCfg->cbStreamIn  = sizeof(ALSAAUDIOSTREAM);
  • trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp

    r73689 r73838  
    21812181
    21822182    RT_BZERO(pBackendCfg, sizeof(PDMAUDIOBACKENDCFG));
     2183
     2184    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "Core Audio driver");
    21832185
    21842186    pBackendCfg->cbStreamIn  = sizeof(COREAUDIOSTREAM);
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r73730 r73838  
    17441744        pThis->fEnabledOut = RT_BOOL(cbCtx.cDevOut);
    17451745        pThis->fEnabledIn  = RT_BOOL(cbCtx.cDevIn);
     1746
     1747        RTStrPrintf2(Cfg.szName, sizeof(Cfg.szName), "DirectSound audio driver");
    17461748
    17471749        Cfg.cMaxStreamsIn  = UINT32_MAX;
  • trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp

    r73454 r73838  
    7070    RT_NOREF(pInterface);
    7171    AssertPtrReturn(pBackendCfg, VERR_INVALID_POINTER);
     72
     73    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "Debug audio driver");
    7274
    7375    pBackendCfg->cbStreamOut    = sizeof(DEBUGAUDIOSTREAM);
  • trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp

    r73572 r73838  
    8888    NOREF(pInterface);
    8989    AssertPtrReturn(pBackendCfg, VERR_INVALID_POINTER);
     90
     91    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "NULL audio driver");
    9092
    9193    pBackendCfg->cbStreamOut    = sizeof(NULLAUDIOSTREAM);
  • trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp

    r73696 r73838  
    552552{
    553553    RT_NOREF(pInterface);
     554
     555    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "OSS audio driver");
    554556
    555557    pBackendCfg->cbStreamIn  = sizeof(OSSAUDIOSTREAM);
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r73831 r73838  
    11241124    PDMAUDIOBACKENDCFG Cfg;
    11251125    RT_ZERO(Cfg);
     1126
     1127    RTStrPrintf2(Cfg.szName, sizeof(Cfg.szName), "PulseAudio driver");
    11261128
    11271129    Cfg.cbStreamOut    = sizeof(PULSEAUDIOSTREAM);
  • trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp

    r73596 r73838  
    8282    RT_NOREF(pInterface);
    8383    AssertPtrReturn(pBackendCfg, VERR_INVALID_POINTER);
     84
     85    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "Validation Kit audio driver");
    8486
    8587    pBackendCfg->cbStreamOut    = sizeof(VAKITAUDIOSTREAM);
  • trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp

    r73685 r73838  
    373373    RT_NOREF(pInterface);
    374374    AssertPtrReturn(pBackendCfg, VERR_INVALID_POINTER);
     375
     376    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "VRDE audio driver");
    375377
    376378    pBackendCfg->cbStreamOut    = sizeof(VRDESTREAM);
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r73543 r73838  
    834834    RT_NOREF(pInterface);
    835835    AssertPtrReturn(pBackendCfg, VERR_INVALID_POINTER);
     836
     837    RTStrPrintf2(pBackendCfg->szName, sizeof(pBackendCfg->szName), "Video recording audio driver");
    836838
    837839    pBackendCfg->cbStreamOut    = sizeof(AVRECSTREAM);
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