Changeset 91413 in vbox for trunk/src/VBox
- Timestamp:
- Sep 27, 2021 5:04:53 PM (3 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r91212 r91413 114 114 reporter.log(' --audio-test-count <number>'); 115 115 reporter.log(' Default: 0 (means random)'); 116 reporter.log(' --audio-test-tone-duration <ms>'); 117 reporter.log(' Default: 0 (means random)'); 116 118 reporter.log(' --audio-verify-max-diff-count <number>'); 117 119 reporter.log(' Default: 0 (strict)'); … … 142 144 raise base.InvalidOption('The "--audio-tests" value "%s" is not valid; valid values are: %s' 143 145 % (s, ' '.join(self.asTestsDef))); 144 elif asArgs[iArg] == '--audio-test-count': 146 elif asArgs[iArg] == 'audio-test-count' \ 147 or asArgs[iArg] == 'audio-test-tone-duration': 145 148 # Strip the "--audio-test-" prefix and keep the options as defined in VKAT, 146 149 # e.g. "--audio-test-count" -> "--count". That way we don't -
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r91211 r91413 119 119 VKAT_TEST_OPT_COUNT = 900, 120 120 VKAT_TEST_OPT_DEV, 121 VKAT_TEST_OPT_TONE_DURATION_MS, 121 122 VKAT_TEST_OPT_GUEST_ATS_ADDR, 122 123 VKAT_TEST_OPT_GUEST_ATS_PORT, … … 195 196 { "--tcp-bind-port", VKAT_TEST_OPT_TCP_BIND_PORT, RTGETOPT_REQ_UINT16 }, 196 197 { "--tcp-connect-addr", VKAT_TEST_OPT_TCP_CONNECT_ADDRESS, RTGETOPT_REQ_STRING }, 197 { "--tcp-connect-port", VKAT_TEST_OPT_TCP_CONNECT_PORT, RTGETOPT_REQ_UINT16 } 198 { "--tcp-connect-port", VKAT_TEST_OPT_TCP_CONNECT_PORT, RTGETOPT_REQ_UINT16 }, 199 { "--tone-duration", VKAT_TEST_OPT_TONE_DURATION_MS, RTGETOPT_REQ_UINT32 } 198 200 }; 199 201 … … 280 282 pToneParms->dbFreqHz = AudioTestToneGetRandomFreq(); 281 283 pToneParms->msPrequel = 0; /** @todo Implement analyzing this first! */ 282 pToneParms->msDuration = RTRandU32Ex(200, RT_MS_30SEC); /** @todo Probably a bit too long, but let's see. */284 pToneParms->msDuration = pTstEnv->cMsToneDuration == 0 ? RTRandU32Ex(200, RT_MS_30SEC) : pTstEnv->cMsToneDuration; 283 285 pToneParms->msSequel = 0; /** @todo Implement analyzing this first! */ 284 286 pToneParms->uVolumePercent = 100; /** @todo Implement analyzing this first! */ … … 387 389 pToneParms->msPrequel = 0; /** @todo Implement analyzing this first! */ 388 390 pToneParms->Props = pTstParmsAcq->Props; 389 pToneParms->msDuration = RTRandU32Ex(200 /* ms */, RT_MS_30SEC); /** @todo Record even longer? */391 pToneParms->msDuration = pTstEnv->cMsToneDuration == 0 ? RTRandU32Ex(200, RT_MS_30SEC) : pTstEnv->cMsToneDuration; 390 392 pToneParms->msSequel = 0; /** @todo Implement analyzing this first! */ 391 393 pToneParms->uVolumePercent = 100; /** @todo Implement analyzing this first! */ … … 710 712 case VKAT_TEST_OPT_DEV: return "Name of the input/output device to use\n" 711 713 " Default: default device"; 714 case VKAT_TEST_OPT_TONE_DURATION_MS: return "Duration (in ms) of test tone to play / record for selected tests\n" 715 " Default: random number"; 712 716 case VKAT_TEST_OPT_GUEST_ATS_ADDR: return "Address of guest ATS to connect to\n" 713 717 " Default: " ATS_TCP_DEF_CONNECT_GUEST_STR; … … 840 844 break; 841 845 846 case VKAT_TEST_OPT_TONE_DURATION_MS: 847 TstEnv.cMsToneDuration = ValueUnion.u32; 848 break; 849 842 850 case VKAT_TEST_OPT_PAUSE: 843 851 return RTMsgErrorExitFailure("Not yet implemented!"); -
trunk/src/VBox/ValidationKit/utils/audio/vkatInternal.h
r91211 r91413 236 236 * When set to 0 (default), a random value (see specific test) will be chosen. */ 237 237 uint32_t cIterations; 238 /** Duration (in ms) to play / record test tone. 239 * When set to 0 (default), a random value (see specific test) will be chosen. */ 240 uint32_t cMsToneDuration; 238 241 /** Output path for storing the test environment's final test files. */ 239 242 char szTag[AUDIOTEST_TAG_MAX];
Note:
See TracChangeset
for help on using the changeset viewer.