- Timestamp:
- Aug 31, 2018 5:57:44 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r73872 r74007 1967 1967 { 1968 1968 case PDMAUDIOBACKENDCBTYPE_DEVICES_CHANGED: 1969 LogRel(("Audio: Host audio device configuration has changed\n"));1969 LogRel(("Audio: Device configuration of driver '%s' has changed\n", pThis->szName)); 1970 1970 rc = drvAudioScheduleReInitInternal(pThis); 1971 1971 break; … … 2010 2010 { 2011 2011 if (fLog) 2012 LogRel(("Audio: Found %RU16 devices \n", DevEnum.cDevices));2012 LogRel(("Audio: Found %RU16 devices for driver '%s'\n", DevEnum.cDevices, pThis->szName)); 2013 2013 2014 2014 PPDMAUDIODEVICE pDev; … … 2038 2038 { 2039 2039 if (fLog) 2040 LogRel(("Audio: Device enumeration f ailed with %Rrc\n", rc));2040 LogRel(("Audio: Device enumeration for driver '%s' failed with %Rrc\n", pThis->szName, rc)); 2041 2041 /* Not fatal. */ 2042 2042 } … … 2047 2047 2048 2048 if (fLog) 2049 LogRel 3(("Audio: Host audio backend does not support audio device enumeration, skipping\n"));2049 LogRel2(("Audio: Host driver '%s' does not support audio device enumeration, skipping\n", pThis->szName)); 2050 2050 } 2051 2051 … … 2080 2080 if (RT_FAILURE(rc)) 2081 2081 { 2082 LogRel(("Audio: Initialization of host backend failed with %Rrc\n", rc));2082 LogRel(("Audio: Initialization of host driver '%s' failed with %Rrc\n", pThis->szName, rc)); 2083 2083 return VERR_AUDIO_BACKEND_INIT_FAILED; 2084 2084 } … … 2090 2090 if (RT_FAILURE(rc)) 2091 2091 { 2092 LogRel(("Audio: Getting host backend configuration failed with %Rrc\n", rc));2092 LogRel(("Audio: Getting host driver configuration failed with %Rrc\n", pThis->szName, rc)); 2093 2093 return VERR_AUDIO_BACKEND_INIT_FAILED; 2094 2094 } … … 2099 2099 LogFlowFunc(("cStreamsFreeIn=%RU8, cStreamsFreeOut=%RU8\n", pThis->In.cStreamsFree, pThis->Out.cStreamsFree)); 2100 2100 2101 LogRel2(("Audio: Host audio backend supports %RU32 input streams and %RU32 output streams at once\n", 2101 LogRel2(("Audio: Host driver '%s' supports %RU32 input streams and %RU32 output streams at once\n", 2102 pThis->szName, 2102 2103 /* Clamp for logging. Unlimited streams are defined by UINT32_MAX. */ 2103 2104 RT_MIN(64, pThis->In.cStreamsFree), RT_MIN(64, pThis->Out.cStreamsFree))); … … 2120 2121 rc2 = pThis->pHostDrvAudio->pfnSetCallback(pThis->pHostDrvAudio, drvAudioBackendCallback); 2121 2122 if (RT_FAILURE(rc2)) 2122 LogRel(("Audio: Error registering backend callback, rc=%Rrc\n", rc2));2123 LogRel(("Audio: Error registering callback for host driver '%s', rc=%Rrc\n", pThis->szName, rc2)); 2123 2124 /* Not fatal. */ 2124 2125 } … … 2178 2179 2179 2180 if (pCfg->Dbg.fEnabled) 2180 LogRel(("Audio: Debugging enabled (audio data written to '%s')\n", pCfg->Dbg.szPathOut));2181 LogRel(("Audio: Debugging for driver '%s' enabled (audio data written to '%s')\n", pThis->szName, pCfg->Dbg.szPathOut)); 2181 2182 2182 2183 /* Buffering stuff. */ … … 2202 2203 AssertPtrReturn(pCfgHandle, VERR_INVALID_POINTER); 2203 2204 AssertPtrReturn(pDrvIns, VERR_INVALID_POINTER); 2204 2205 LogRel2(("Audio: Verbose logging enabled\n"));2206 2205 2207 2206 PDRVAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIO); … … 2228 2227 CFGMR3QueryBoolDef(pThis->pCFGMNode, "OutputEnabled", &pThis->Out.fEnabled, false); 2229 2228 2230 LogRel2(("Audio: Initial status for driver '%s': Input is %s, output is %s\n", 2229 LogRel2(("Audio: Verbose logging for driver '%s' enabled\n", pThis->szName)); 2230 2231 LogRel2(("Audio: Initial status for driver '%s' is: input is %s, output is %s\n", 2231 2232 pThis->szName, pThis->In.fEnabled ? "enabled" : "disabled", pThis->Out.fEnabled ? "enabled" : "disabled")); 2232 2233 … … 2596 2597 if (fEnable != *pfEnabled) 2597 2598 { 2598 LogRel(("Audio: %s %s \n",2599 fEnable ? "Enabling" : "Disabling", enmDir == PDMAUDIODIR_IN ? "input" : "output" ));2599 LogRel(("Audio: %s %s for driver '%s'\n", 2600 fEnable ? "Enabling" : "Disabling", enmDir == PDMAUDIODIR_IN ? "input" : "output", pThis->szName)); 2600 2601 2601 2602 PPDMAUDIOSTREAM pStream; … … 3193 3194 if (!pThis->pHostDrvAudio) 3194 3195 { 3195 LogRel(("Audio: Failed to query interface for underlying host driver \n"));3196 LogRel(("Audio: Failed to query interface for underlying host driver '%s'\n", pThis->szName)); 3196 3197 rc = PDMDRV_SET_ERROR(pThis->pDrvIns, VERR_PDM_MISSING_INTERFACE_BELOW, 3197 3198 N_("Host audio backend missing or invalid"));
Note:
See TracChangeset
for help on using the changeset viewer.