Changeset 89837 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Jun 22, 2021 2:18:34 PM (4 years ago)
- Location:
- trunk/src/VBox/ValidationKit/utils/audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89834 r89837 198 198 unsigned g_uVerbosity = 0; 199 199 /** DrvAudio: Enable debug (or not). */ 200 bool g_fDrvAudioDebug = 0;200 bool g_fDrvAudioDebug = false; 201 201 /** DrvAudio: The debug output path. */ 202 202 const char *g_pszDrvAudioDebug = NULL; … … 901 901 } 902 902 903 AudioTestSetWipe(&SetA); 903 if (!g_fDrvAudioDebug) /* Don't wipe stuff when debugging. Can be useful for introspecting data. */ 904 AudioTestSetWipe(&SetA); 904 905 AudioTestSetClose(&SetA); 905 906 906 AudioTestSetWipe(&SetB); 907 if (!g_fDrvAudioDebug) /* Ditto. */ 908 AudioTestSetWipe(&SetB); 907 909 AudioTestSetClose(&SetB); 908 910 … … 1031 1033 "Global Options:\n" 1032 1034 " --debug-audio\n" 1033 " Enables DrvAudiodebugging.\n"1035 " Enables (DrvAudio) debugging.\n" 1034 1036 " --debug-audio-path=<path>\n" 1035 1037 " Tells DrvAudio where to put its debug output (wav-files).\n" … … 1088 1090 * @param pStream Output stream to show logo on. 1089 1091 */ 1090 staticvoid audioTestShowLogo(PRTSTREAM pStream)1092 void audioTestShowLogo(PRTSTREAM pStream) 1091 1093 { 1092 1094 RTStrmPrintf(pStream, VBOX_PRODUCT " VKAT (Validation Kit Audio Test) Version " VBOX_VERSION_STRING " - r%s\n" … … 1146 1148 switch (rc) 1147 1149 { 1148 case 'q': 1149 g_uVerbosity = 0; 1150 if (g_pRelLogger) 1151 RTLogGroupSettings(g_pRelLogger, "all=0 all.e"); 1152 break; 1153 1154 case 'v': 1155 g_uVerbosity++; 1156 if (g_pRelLogger) 1157 RTLogGroupSettings(g_pRelLogger, g_uVerbosity == 1 ? "all.e.l" : g_uVerbosity == 2 ? "all.e.l.f" : "all=~0"); 1158 break; 1159 1160 case 'V': 1161 return audioTestVersion(); 1162 1163 case 'h': 1164 audioTestShowLogo(g_pStdOut); 1165 return audioTestUsage(g_pStdOut); 1150 AUDIO_TEST_COMMON_OPTION_CASES(ValueUnion); 1166 1151 1167 1152 case VINF_GETOPT_NOT_OPTION: -
trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp
r89833 r89837 825 825 } 826 826 827 /* ignore rc */ AudioTestSetWipe(&pTstEnv->Set); 827 if (!g_fDrvAudioDebug) /* Don't wipe stuff when debugging. Can be useful for introspecting data. */ 828 /* ignore rc */ AudioTestSetWipe(&pTstEnv->Set); 828 829 829 830 AudioTestSetDestroy(&pTstEnv->Set); -
trunk/src/VBox/ValidationKit/utils/audio/vkatInternal.h
r89686 r89837 347 347 RTEXITCODE audioTestUsage(PRTSTREAM pStrm); 348 348 RTEXITCODE audioTestVersion(void); 349 void audioTestShowLogo(PRTSTREAM pStream); 349 350 /** @} */ 350 351 … … 465 466 \ 466 467 case 'h': \ 468 audioTestShowLogo(g_pStdOut); \ 467 469 return audioTestUsage(g_pStdOut); \ 468 470 \
Note:
See TracChangeset
for help on using the changeset viewer.