VirtualBox

Ignore:
Timestamp:
May 10, 2021 11:50:21 AM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Docs. bugref:10008

File:
1 edited

Legend:

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

    r88960 r88962  
    235235*********************************************************************************************************************************/
    236236
     237/**
     238 * Initializes an audio test environment.
     239 *
     240 * @param   pTstEnv             Audio test environment to initialize.
     241 * @param   pDrvAudio           Audio driver to use.
     242 */
    237243static void audioTestEnvInit(PAUDIOTESTENV pTstEnv, PPDMIHOSTAUDIO pDrvAudio)
    238244{
     
    245251}
    246252
     253/**
     254 * Destroys an audio test environment.
     255 *
     256 * @param   pTstEnv             Audio test environment to destroy.
     257 */
    247258static void audioTestEnvDestroy(PAUDIOTESTENV pTstEnv)
    248259{
     
    253264}
    254265
     266/**
     267 * Initializes an audio test parameters set.
     268 *
     269 * @param   pTstParms           Test parameters set to initialize.
     270 */
    255271static void audioTestParmsInit(PAUDIOTESTPARMS pTstParms)
    256272{
     
    259275}
    260276
     277/**
     278 * Destroys an audio test parameters set.
     279 *
     280 * @param   pTstParms           Test parameters set to destroy.
     281 */
    261282static void audioTestParmsDestroy(PAUDIOTESTPARMS pTstParms)
    262283{
     
    319340}
    320341
     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 */
    321350static int audioTestDrvConstruct(const PDMDRVREG *pDrvReg, PPDMDRVINS pDrvIns, PPDMIHOSTAUDIO *ppDrvAudio)
    322351{
     
    341370}
    342371
     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 */
    343379static int audioTestDrvDestruct(const PDMDRVREG *pDrvReg, PPDMDRVINS pDrvIns)
    344380{
     
    358394}
    359395
     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 */
    360405static int audioTestDevicesEnumerateAndCheck(PAUDIOTESTENV pTstEnv, const char *pszDev, PPDMAUDIOHOSTDEV *ppDev)
    361406{
     
    408453}
    409454
     455/**
     456 * Opens an audio device.
     457 *
     458 * @returns VBox status code.
     459 * @param   pDev                Audio device to open.
     460 */
    410461static int audioTestDeviceOpen(PPDMAUDIOHOSTDEV pDev)
    411462{
     
    421472}
    422473
     474/**
     475 * Closes an audio device.
     476 *
     477 * @returns VBox status code.
     478 * @param   pDev                Audio device to close.
     479 */
    423480static int audioTestDeviceClose(PPDMAUDIOHOSTDEV pDev)
    424481{
     
    440497}
    441498
     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 */
    442508static int audioTestOne(PAUDIOTESTENV pTstEnv, PAUDIOTESTDESC pTstDesc,
    443509                        unsigned uSeq, PAUDIOTESTPARMS pOverrideParms)
     
    491557}
    492558
     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 */
    493566static int audioTestWorker(PAUDIOTESTENV pTstEnv, PAUDIOTESTPARMS pOverrideParms)
    494567{
     
    509582}
    510583
     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 */
    511591int mainTest(int argc, char **argv)
    512592{
     
    699779}
    700780
     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 */
    701788int mainVerify(int argc, char **argv)
    702789{
    703790    RT_NOREF(argc, argv);
    704     return 0;
     791
     792    return RTMsgErrorExit(RTEXITCODE_SKIPPED, "Sorry, not implemented yet!\n");
    705793}
    706794
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