VirtualBox

Ignore:
Timestamp:
Jun 22, 2021 2:18:34 PM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Removed Doppelmoppel global/common options and use AUDIO_TEST_COMMON_OPTION_CASES in the main case as well. Also use g_fDrvAudioDebug as the global debug(ging) flag for VKAT. bugref:10008

Location:
trunk/src/VBox/ValidationKit/utils/audio
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89834 r89837  
    198198unsigned         g_uVerbosity = 0;
    199199/** DrvAudio: Enable debug (or not). */
    200 bool             g_fDrvAudioDebug = 0;
     200bool             g_fDrvAudioDebug = false;
    201201/** DrvAudio: The debug output path. */
    202202const char      *g_pszDrvAudioDebug = NULL;
     
    901901    }
    902902
    903     AudioTestSetWipe(&SetA);
     903    if (!g_fDrvAudioDebug) /* Don't wipe stuff when debugging. Can be useful for introspecting data. */
     904        AudioTestSetWipe(&SetA);
    904905    AudioTestSetClose(&SetA);
    905906
    906     AudioTestSetWipe(&SetB);
     907    if (!g_fDrvAudioDebug) /* Ditto. */
     908        AudioTestSetWipe(&SetB);
    907909    AudioTestSetClose(&SetB);
    908910
     
    10311033                 "Global Options:\n"
    10321034                 "  --debug-audio\n"
    1033                  "    Enables DrvAudio debugging.\n"
     1035                 "    Enables (DrvAudio) debugging.\n"
    10341036                 "  --debug-audio-path=<path>\n"
    10351037                 "    Tells DrvAudio where to put its debug output (wav-files).\n"
     
    10881090 * @param   pStream             Output stream to show logo on.
    10891091 */
    1090 static void audioTestShowLogo(PRTSTREAM pStream)
     1092void audioTestShowLogo(PRTSTREAM pStream)
    10911093{
    10921094    RTStrmPrintf(pStream, VBOX_PRODUCT " VKAT (Validation Kit Audio Test) Version " VBOX_VERSION_STRING " - r%s\n"
     
    11461148        switch (rc)
    11471149        {
    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);
    11661151
    11671152            case VINF_GETOPT_NOT_OPTION:
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r89833 r89837  
    825825    }
    826826
    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);
    828829
    829830    AudioTestSetDestroy(&pTstEnv->Set);
  • trunk/src/VBox/ValidationKit/utils/audio/vkatInternal.h

    r89686 r89837  
    347347RTEXITCODE audioTestUsage(PRTSTREAM pStrm);
    348348RTEXITCODE audioTestVersion(void);
     349void       audioTestShowLogo(PRTSTREAM pStream);
    349350/** @}  */
    350351
     
    465466            \
    466467            case 'h': \
     468                audioTestShowLogo(g_pStdOut); \
    467469                return audioTestUsage(g_pStdOut); \
    468470            \
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette