Changeset 90765 in vbox for trunk/src/VBox
- Timestamp:
- Aug 20, 2021 5:00:41 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
r90183 r90765 1106 1106 pszTcpAddr, uTcpPort)); 1107 1107 1108 rc = AudioTestSvcCreate(&pThis->Srv); 1109 if (RT_SUCCESS(rc)) 1108 /* Dont' use rc here, as this will be reported back to PDM and will prevent VBox 1109 * from starting -- not critical but warn the user though. */ 1110 int rc2 = AudioTestSvcCreate(&pThis->Srv); 1111 if (RT_SUCCESS(rc2)) 1110 1112 { 1111 1113 RTGETOPTUNION Val; … … 1113 1115 1114 1116 Val.psz = "server"; /** @ŧodo No client connection mode needed here (yet). Make this configurable via CFGM. */ 1115 rc = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_MODE, &Val);1116 AssertRC(rc );1117 rc2 = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_MODE, &Val); 1118 AssertRC(rc2); 1117 1119 1118 1120 Val.psz = pszTcpAddr; 1119 rc = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_ADDRESS, &Val);1120 AssertRC(rc );1121 rc2 = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_ADDRESS, &Val); 1122 AssertRC(rc2); 1121 1123 1122 1124 Val.u16 = uTcpPort; 1123 rc = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_PORT, &Val);1124 AssertRC(rc );1125 1126 rc = AudioTestSvcInit(&pThis->Srv, &Callbacks);1127 if (RT_SUCCESS(rc ))1128 rc = AudioTestSvcStart(&pThis->Srv);1129 } 1130 1131 if (RT_SUCCESS(rc ))1125 rc2 = AudioTestSvcHandleOption(&pThis->Srv, ATSTCPOPT_BIND_PORT, &Val); 1126 AssertRC(rc2); 1127 1128 rc2 = AudioTestSvcInit(&pThis->Srv, &Callbacks); 1129 if (RT_SUCCESS(rc2)) 1130 rc2 = AudioTestSvcStart(&pThis->Srv); 1131 } 1132 1133 if (RT_SUCCESS(rc2)) 1132 1134 { 1133 1135 LogRel(("ValKit: Audio Test Service (ATS) running\n")); 1134 1136 1135 1137 /** @todo Let the following be customizable by CFGM later. */ 1136 rc = AudioTestPathCreateTemp(pThis->szPathTemp, sizeof(pThis->szPathTemp), "ValKitAudio");1137 if (RT_SUCCESS(rc ))1138 rc2 = AudioTestPathCreateTemp(pThis->szPathTemp, sizeof(pThis->szPathTemp), "ValKitAudio"); 1139 if (RT_SUCCESS(rc2)) 1138 1140 { 1139 1141 LogRel(("ValKit: Using temp dir '%s'\n", pThis->szPathTemp)); 1140 rc = AudioTestPathGetTemp(pThis->szPathOut, sizeof(pThis->szPathOut));1141 if (RT_SUCCESS(rc ))1142 rc2 = AudioTestPathGetTemp(pThis->szPathOut, sizeof(pThis->szPathOut)); 1143 if (RT_SUCCESS(rc2)) 1142 1144 LogRel(("ValKit: Using output dir '%s'\n", pThis->szPathOut)); 1143 1145 } 1144 1146 } 1145 1147 1146 if (RT_FAILURE(rc)) 1148 if (RT_FAILURE(rc2)) 1149 LogRel(("ValKit: Error starting Audio Test Service (ATS), rc=%Rrc -- tests *will* fail!\n", rc2)); 1150 1151 if (RT_FAILURE(rc)) /* This one *is* critical though. */ 1147 1152 LogRel(("ValKit: Initialization failed, rc=%Rrc\n", rc)); 1148 1153
Note:
See TracChangeset
for help on using the changeset viewer.