Changeset 88962 in vbox for trunk/src/VBox/ValidationKit/utils/audio
- Timestamp:
- May 10, 2021 11:50:21 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r88960 r88962 235 235 *********************************************************************************************************************************/ 236 236 237 /** 238 * Initializes an audio test environment. 239 * 240 * @param pTstEnv Audio test environment to initialize. 241 * @param pDrvAudio Audio driver to use. 242 */ 237 243 static void audioTestEnvInit(PAUDIOTESTENV pTstEnv, PPDMIHOSTAUDIO pDrvAudio) 238 244 { … … 245 251 } 246 252 253 /** 254 * Destroys an audio test environment. 255 * 256 * @param pTstEnv Audio test environment to destroy. 257 */ 247 258 static void audioTestEnvDestroy(PAUDIOTESTENV pTstEnv) 248 259 { … … 253 264 } 254 265 266 /** 267 * Initializes an audio test parameters set. 268 * 269 * @param pTstParms Test parameters set to initialize. 270 */ 255 271 static void audioTestParmsInit(PAUDIOTESTPARMS pTstParms) 256 272 { … … 259 275 } 260 276 277 /** 278 * Destroys an audio test parameters set. 279 * 280 * @param pTstParms Test parameters set to destroy. 281 */ 261 282 static void audioTestParmsDestroy(PAUDIOTESTPARMS pTstParms) 262 283 { … … 319 340 } 320 341 342 /** 343 * Constructs a PDM audio driver instance. 344 * 345 * @returns VBox status code. 346 * @param pDrvReg PDM driver registration record to use for construction. 347 * @param pDrvIns Driver instance to use for construction. 348 * @param ppDrvAudio Where to return the audio driver interface of type IHOSTAUDIO. 349 */ 321 350 static int audioTestDrvConstruct(const PDMDRVREG *pDrvReg, PPDMDRVINS pDrvIns, PPDMIHOSTAUDIO *ppDrvAudio) 322 351 { … … 341 370 } 342 371 372 /** 373 * Destructs a PDM audio driver instance. 374 * 375 * @returns VBox status code. 376 * @param pDrvReg PDM driver registration record to destruct. 377 * @param pDrvIns Driver instance to destruct. 378 */ 343 379 static int audioTestDrvDestruct(const PDMDRVREG *pDrvReg, PPDMDRVINS pDrvIns) 344 380 { … … 358 394 } 359 395 396 /** 397 * Enumerates audio devices and optionally searches for a specific device. 398 * 399 * @returns VBox status code. 400 * @param pTstEnv Test env to use for enumeration. 401 * @param pszDev Device name to search for. Can be NULL if the default device shall be used. 402 * @param ppDev Where to return the pointer of the device enumeration of \a pTstEnv when a 403 * specific device was found. 404 */ 360 405 static int audioTestDevicesEnumerateAndCheck(PAUDIOTESTENV pTstEnv, const char *pszDev, PPDMAUDIOHOSTDEV *ppDev) 361 406 { … … 408 453 } 409 454 455 /** 456 * Opens an audio device. 457 * 458 * @returns VBox status code. 459 * @param pDev Audio device to open. 460 */ 410 461 static int audioTestDeviceOpen(PPDMAUDIOHOSTDEV pDev) 411 462 { … … 421 472 } 422 473 474 /** 475 * Closes an audio device. 476 * 477 * @returns VBox status code. 478 * @param pDev Audio device to close. 479 */ 423 480 static int audioTestDeviceClose(PPDMAUDIOHOSTDEV pDev) 424 481 { … … 440 497 } 441 498 499 /** 500 * Runs one specific audio test. 501 * 502 * @returns VBox status code. 503 * @param pTstEnv Test environment to use for running the test. 504 * @param pTstDesc Test to run. 505 * @param uSeq Test sequence # in case there are more tests. 506 * @param pOverrideParms Test parameters for overriding the actual test parameters. Optional. 507 */ 442 508 static int audioTestOne(PAUDIOTESTENV pTstEnv, PAUDIOTESTDESC pTstDesc, 443 509 unsigned uSeq, PAUDIOTESTPARMS pOverrideParms) … … 491 557 } 492 558 559 /** 560 * Runs all specified tests in a row. 561 * 562 * @returns VBox status code. 563 * @param pTstEnv Test environment to use for running all tests. 564 * @param pOverrideParms Test parameters for (some / all) specific test parameters. Optional. 565 */ 493 566 static int audioTestWorker(PAUDIOTESTENV pTstEnv, PAUDIOTESTPARMS pOverrideParms) 494 567 { … … 509 582 } 510 583 584 /** 585 * Main (entry) function for the testing functionality of VKAT. 586 * 587 * @returns RTEXITCODE 588 * @param argc Number of argv arguments. 589 * @param argv argv arguments. 590 */ 511 591 int mainTest(int argc, char **argv) 512 592 { … … 699 779 } 700 780 781 /** 782 * Main (entry) function for the verification functionality of VKAT. 783 * 784 * @returns RTEXITCODE 785 * @param argc Number of argv arguments. 786 * @param argv argv arguments. 787 */ 701 788 int mainVerify(int argc, char **argv) 702 789 { 703 790 RT_NOREF(argc, argv); 704 return 0; 791 792 return RTMsgErrorExit(RTEXITCODE_SKIPPED, "Sorry, not implemented yet!\n"); 705 793 } 706 794
Note:
See TracChangeset
for help on using the changeset viewer.