Changeset 92452 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 16, 2021 10:43:51 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
r92450 r92452 1153 1153 PDMAudioPropsBytesToMilli(&pStream->pStream->Cfg.Props, AudioTestBeaconGetRemaining(pBeacon)))); 1154 1154 1155 bool fGoToNextStage = false; 1156 1155 1157 if ( AudioTestBeaconGetSize(pBeacon) 1156 1158 && !AudioTestBeaconIsComplete(pBeacon)) … … 1182 1184 pTst->idxTest, AudioTestBeaconTypeGetName(pBeacon->enmType))); 1183 1185 1184 if (pTst->enmState == AUDIOTESTSTATE_PRE) 1185 pTst->enmState = AUDIOTESTSTATE_RUN; 1186 else if (pTst->enmState == AUDIOTESTSTATE_POST) 1187 pTst->enmState = AUDIOTESTSTATE_DONE; 1186 fGoToNextStage = true; 1188 1187 } 1189 1188 } 1190 else /* Go to the next state. */ 1191 pTst->enmState = AUDIOTESTSTATE_RUN; 1189 else 1190 fGoToNextStage = true; 1191 1192 if (fGoToNextStage) 1193 { 1194 if (pTst->enmState == AUDIOTESTSTATE_PRE) 1195 pTst->enmState = AUDIOTESTSTATE_RUN; 1196 else if (pTst->enmState == AUDIOTESTSTATE_POST) 1197 pTst->enmState = AUDIOTESTSTATE_DONE; 1198 } 1192 1199 break; 1193 1200 } … … 1380 1387 case AUDIOTESTSTATE_POST: 1381 1388 { 1389 bool fGoToNextStage = false; 1390 1382 1391 PAUDIOTESTTONEBEACON pBeacon = &pTst->t.TestTone.Beacon; 1383 1392 if ( AudioTestBeaconGetSize(pBeacon) … … 1404 1413 pTst->idxTest, AudioTestBeaconTypeGetName(pBeacon->enmType))); 1405 1414 1406 if (pTst->enmState == AUDIOTESTSTATE_PRE) 1407 pTst->enmState = AUDIOTESTSTATE_RUN; 1408 else if (pTst->enmState == AUDIOTESTSTATE_POST) 1409 pTst->enmState = AUDIOTESTSTATE_DONE; 1415 fGoToNextStage = true; 1410 1416 } 1411 1417 } 1412 else /* Go to the next state. */ 1413 pTst->enmState = AUDIOTESTSTATE_RUN; 1418 else 1419 fGoToNextStage = true; 1420 1421 if (fGoToNextStage) 1422 { 1423 if (pTst->enmState == AUDIOTESTSTATE_PRE) 1424 pTst->enmState = AUDIOTESTSTATE_RUN; 1425 else if (pTst->enmState == AUDIOTESTSTATE_POST) 1426 pTst->enmState = AUDIOTESTSTATE_DONE; 1427 } 1414 1428 break; 1415 1429 }
Note:
See TracChangeset
for help on using the changeset viewer.