- Timestamp:
- Sep 15, 2016 9:50:13 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r63778 r63848 965 965 Log3Func(("[%s] %RU32 captured samples mixed\n", pHstStream->szName, cSamplesMixed)); 966 966 } 967 else if (RT_FAILURE(rc)) 968 { 969 if (rc == VERR_BUFFER_OVERFLOW) 970 LogRel2(("Audio: Guest input stream '%s' full, expect stuttering audio capture\n", pGstStream->szName)); 971 else 972 LogRel2(("Audio: Mixing to guest input stream '%s' failed: %Rrc\n", pGstStream->szName, rc)); 973 } 967 974 } 968 975 else … … 982 989 pHstStream->szName, cSamplesMixed, 983 990 AudioMixBufUsed(&pGstStream->MixBuf), AudioMixBufLive(&pGstStream->MixBuf))); 991 } 992 else if (RT_FAILURE(rc)) 993 { 994 if (rc == VERR_BUFFER_OVERFLOW) 995 LogRel2(("Audio: Host output stream '%s' full, expect stuttering audio output\n", pHstStream->szName)); 996 else 997 LogRel2(("Audio: Mixing to host output stream '%s' failed: %Rrc\n", pHstStream->szName, rc)); 984 998 } 985 999 … … 1101 1115 1102 1116 AssertPtr(pThis->pHostDrvAudio->pfnStreamGetStatus); 1103 PDMAUDIOSTRMSTS st rmSts= pThis->pHostDrvAudio->pfnStreamGetStatus(pThis->pHostDrvAudio, pHstStream);1117 PDMAUDIOSTRMSTS stsBackend = pThis->pHostDrvAudio->pfnStreamGetStatus(pThis->pHostDrvAudio, pHstStream); 1104 1118 1105 1119 uint32_t cSamplesLive = AudioMixBufLive(&pGstStream->MixBuf); 1106 1120 if (cSamplesLive) 1107 1121 { 1108 if ( (st rmSts & PDMAUDIOSTRMSTS_FLAG_INITIALIZED)1109 && (st rmSts& PDMAUDIOSTRMSTS_FLAG_DATA_WRITABLE))1122 if ( (stsBackend & PDMAUDIOSTRMSTS_FLAG_ENABLED) 1123 && (stsBackend & PDMAUDIOSTRMSTS_FLAG_DATA_WRITABLE)) 1110 1124 { 1111 1125 AssertPtr(pThis->pHostDrvAudio->pfnStreamPlay); … … 1200 1214 1201 1215 AssertPtr(pThis->pHostDrvAudio->pfnStreamGetStatus); 1202 PDMAUDIOSTRMSTS st rmSts= pThis->pHostDrvAudio->pfnStreamGetStatus(pThis->pHostDrvAudio, pHstStream);1216 PDMAUDIOSTRMSTS stsBackend = pThis->pHostDrvAudio->pfnStreamGetStatus(pThis->pHostDrvAudio, pHstStream); 1203 1217 1204 1218 uint32_t cSamplesLive = AudioMixBufLive(&pGstStream->MixBuf); 1205 1219 if (!cSamplesLive) 1206 1220 { 1207 if ( (st rmSts & PDMAUDIOSTRMSTS_FLAG_INITIALIZED)1208 && (st rmSts& PDMAUDIOSTRMSTS_FLAG_DATA_READABLE))1221 if ( (stsBackend & PDMAUDIOSTRMSTS_FLAG_ENABLED) 1222 && (stsBackend & PDMAUDIOSTRMSTS_FLAG_DATA_READABLE)) 1209 1223 { 1210 1224 rc = pThis->pHostDrvAudio->pfnStreamCapture(pThis->pHostDrvAudio, pHstStream, NULL /* pvBuf */, 0 /* cbBuf */, … … 1223 1237 } 1224 1238 1225 Log3Func(("[%s] strmSts=0x%x, cSamplesCaptured=%RU32, rc=%Rrc\n", pHstStream->szName, st rmSts, cSamplesCaptured, rc));1239 Log3Func(("[%s] strmSts=0x%x, cSamplesCaptured=%RU32, rc=%Rrc\n", pHstStream->szName, stsBackend, cSamplesCaptured, rc)); 1226 1240 } 1227 1241 … … 2106 2120 { 2107 2121 strmSts = pHstStream->fStatus; 2108 Log3Func((" %s:strmSts=0x%x\n", pHstStream->szName, strmSts));2122 Log3Func(("[%s] strmSts=0x%x\n", pHstStream->szName, strmSts)); 2109 2123 } 2110 2124
Note:
See TracChangeset
for help on using the changeset viewer.