Changeset 89015 in vbox
- Timestamp:
- May 12, 2021 2:40:56 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144354
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89014 r89015 494 494 } 495 495 496 /** 497 * Creates an audio test stream. 498 * 499 * @returns VBox status code. 500 * @param pTstEnv Test environment to use for creating the stream. 501 * @param pStream Audio stream to create. 502 * @param pCfg Stream configuration to use for creation. 503 */ 496 504 static int audioTestStreamCreate(PAUDIOTESTENV pTstEnv, PAUDIOTESTSTREAM pStream, PPDMAUDIOSTREAMCFG pCfg) 497 505 { … … 515 523 } 516 524 525 /** 526 * Destroys an audio test stream. 527 * 528 * @returns VBox status code. 529 * @param pTstEnv Test environment the stream to destroy contains. 530 * @param pStream Audio stream to destroy. 531 */ 517 532 static int audioTestStreamDestroy(PAUDIOTESTENV pTstEnv, PAUDIOTESTSTREAM pStream) 518 533 { … … 520 535 return VINF_SUCCESS; 521 536 522 if (!pStream->fCreated)537 if (!pStream->fCreated) 523 538 return VINF_SUCCESS; 524 539 … … 532 547 } 533 548 549 /** 550 * Creates an audio default output test stream. 551 * Convenience function. 552 * 553 * @returns VBox status code. 554 * @param pTstEnv Test environment to use for creating the stream. 555 * @param pStream Audio stream to create. 556 * @param pProps PCM properties to use for creation. 557 */ 534 558 static int audioTestCreateStreamDefaultOut(PAUDIOTESTENV pTstEnv, PAUDIOTESTSTREAM pStream, PPDMAUDIOPCMPROPS pProps) 535 559 { … … 545 569 } 546 570 571 /** 572 * Plays a test tone on a specific audio test stream. 573 * 574 * @returns VBox status code. 575 * @param pTstEnv Test environment to use for running the test. 576 * @param pStream Stream to use for playing the tone. 577 * @param pParms Tone parameters to use. 578 * 579 * @note Blocking function. 580 */ 547 581 static int audioTestPlayTone(PAUDIOTESTENV pTstEnv, PAUDIOTESTSTREAM pStream, PAUDIOTESTTONEPARMS pParms) 548 582 { … … 629 663 RT_NOREF(pvCtx); 630 664 631 int rc ;665 int rc = VINF_SUCCESS; 632 666 633 667 PAUDIOTESTSTREAM pStream = &pTstEnv->aStreams[0];
Note:
See TracChangeset
for help on using the changeset viewer.