- Timestamp:
- Dec 27, 2016 10:58:38 AM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r65011 r65012 334 334 return rc; 335 335 336 LogFlowFunc(("[%s] enmStreamCmd=% RU32\n", pStream->szName, enmStreamCmd));336 LogFlowFunc(("[%s] enmStreamCmd=%s\n", pStream->szName, DrvAudioHlpStreamCmdToStr(enmStreamCmd))); 337 337 338 338 rc = drvAudioStreamControlInternal(pThis, pStream, enmStreamCmd); … … 358 358 AssertPtrReturn(pStream, VERR_INVALID_POINTER); 359 359 360 LogFunc(("[%s] enmStreamCmd=% RU32\n", pStream->szName, enmStreamCmd));360 LogFunc(("[%s] enmStreamCmd=%s\n", pStream->szName, DrvAudioHlpStreamCmdToStr(enmStreamCmd))); 361 361 362 362 PPDMAUDIOSTREAM pHstStream = drvAudioGetHostStream(pStream); … … 451 451 452 452 default: 453 AssertMsgFailed(("Command % RU32 not implemented\n", enmStreamCmd));453 AssertMsgFailed(("Command %s (%RU32) not implemented\n", DrvAudioHlpStreamCmdToStr(enmStreamCmd), enmStreamCmd)); 454 454 rc = VERR_NOT_IMPLEMENTED; 455 455 break; … … 482 482 #ifdef LOG_ENABLED 483 483 char *pszHstSts = dbgAudioStreamStatusToStr(pHstStream->fStatus); 484 LogFlowFunc(("[%s] enmStreamCmd=% RU32, fStatus=%s\n", pHstStream->szName, enmStreamCmd, pszHstSts));484 LogFlowFunc(("[%s] enmStreamCmd=%s, fStatus=%s\n", pHstStream->szName, DrvAudioHlpStreamCmdToStr(enmStreamCmd), pszHstSts)); 485 485 RTStrFree(pszHstSts); 486 486 #endif /* LOG_ENABLED */ … … 1728 1728 PDRVAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIO); 1729 1729 1730 LogFlowFunc(("enmCmd=% RU32\n", enmCmd));1730 LogFlowFunc(("enmCmd=%s\n", DrvAudioHlpStreamCmdToStr(enmCmd))); 1731 1731 1732 1732 if (!pThis->pHostDrvAudio) -
trunk/src/VBox/Devices/Audio/DrvAudio.h
r64990 r65012 161 161 bool DrvAudioHlpStreamCfgIsValid(PPDMAUDIOSTREAMCFG pCfg); 162 162 int DrvAudioHlpStreamCfgToProps(PPDMAUDIOSTREAMCFG pCfg, PPDMAUDIOPCMPROPS pProps); 163 const char *DrvAudioHlpStreamCmdToStr(PDMAUDIOSTREAMCMD enmCmd); 163 164 PDMAUDIOFMT DrvAudioHlpStrToAudFmt(const char *pszFmt); 164 165 -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r65011 r65012 992 992 break; 993 993 } 994 } 995 996 /** 997 * Converts a stream command to a string. 998 * 999 * @returns Stringified stream command, or "Unknown", if not found. 1000 * @param enmCmd Stream command to convert. 1001 */ 1002 const char *DrvAudioHlpStreamCmdToStr(PDMAUDIOSTREAMCMD enmCmd) 1003 { 1004 switch (enmCmd) 1005 { 1006 case PDMAUDIOSTREAMCMD_UNKNOWN: return "Unknown"; 1007 case PDMAUDIOSTREAMCMD_ENABLE: return "Enable"; 1008 case PDMAUDIOSTREAMCMD_DISABLE: return "Disable"; 1009 case PDMAUDIOSTREAMCMD_PAUSE: return "Pause"; 1010 case PDMAUDIOSTREAMCMD_RESUME: return "Resume"; 1011 default: break; 1012 } 1013 1014 AssertMsgFailed(("Invalid stream command %ld\n", enmCmd)); 1015 return "Unknown"; 994 1016 } 995 1017
Note:
See TracChangeset
for help on using the changeset viewer.