Changeset 65011 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 27, 2016 10:32:19 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 112506
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r64979 r65011 147 147 static char *dbgAudioStreamStatusToStr(PDMAUDIOSTRMSTS fStatus) 148 148 { 149 #define APPEND_FLAG_TO_STR(_aFlag) \150 if ( fStatus &PDMAUDIOSTRMSTS_FLAG_##_aFlag) \149 #define APPEND_FLAG_TO_STR(_aFlag) \ 150 if ((fStatus & PDMAUDIOSTRMSTS_FLAG_##_aFlag) == PDMAUDIOSTRMSTS_FLAG_##_aFlag) \ 151 151 { \ 152 152 if (pszFlags) \ … … 870 870 AssertPtr(pGstStream); 871 871 872 #ifdef LOG_ENABLED 873 char *pszGstSts = dbgAudioStreamStatusToStr(pGstStream->fStatus); 872 874 AssertMsg(pGstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_ENABLED, 873 ("Writing to disabled guest output stream \"%s\" not possible\n", pGstStream->szName)); 874 875 ("Writing to disabled guest output stream \"%s\" not possible (status is %s)\n", 876 pGstStream->szName, pszGstSts)); 877 RTStrFree(pszGstSts); 878 #endif 875 879 pGstStream->Out.tsLastWriteMS = RTTimeMilliTS(); 876 880 … … 1344 1348 } 1345 1349 } 1350 #ifdef LOG_ENABLED 1346 1351 else 1347 Log3Func(("[%s] Skipping (backend status 0x%x)\n", pHstStream->szName, stsBackend)); 1352 { 1353 char *pszHstSts = dbgAudioStreamStatusToStr(stsBackend); 1354 Log3Func(("[%s] Skipping (backend status %s)\n", pHstStream->szName, pszHstSts)); 1355 RTStrFree(pszHstSts); 1356 } 1357 #endif 1348 1358 } 1349 1359 else … … 1358 1368 } 1359 1369 else 1360 LogFunc((" 1370 LogFunc(("Failed with %Rrc\n", rc)); 1361 1371 1362 1372 int rc2 = RTCritSectLeave(&pThis->CritSect); -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r64992 r65011 565 565 566 566 #define APPEND_FLAG_TO_STR(_aFlag) \ 567 if ( fFlags &PDMAUDIODEV_FLAGS_##_aFlag) \567 if ((fFlags & PDMAUDIODEV_FLAGS_##_aFlag) == PDMAUDIODEV_FLAGS_##_aFlag) \ 568 568 { \ 569 569 if (pszFlags) \
Note:
See TracChangeset
for help on using the changeset viewer.