Changeset 91178 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 9, 2021 11:56:14 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r91177 r91178 2391 2391 pOpts->cMaxDiff = 0; /* By default we're very strict and consider any diff as being erroneous. */ 2392 2392 pOpts->uMaxSizePercent = 0; /* Ditto for size difference. */ 2393 } 2394 2395 /** 2396 * Initializes audio test verification options with default values (strict!). 2397 * 2398 * @param pOpts Verification options to initialize. 2399 */ 2400 void AudioTestSetVerifyOptsInit(PAUDIOTESTVERIFYOPTS pOpts) 2401 { 2402 AudioTestSetVerifyOptsInitStrict(pOpts); 2403 } 2404 2405 /** 2406 * Returns whether two audio test verification options are equal. 2407 * 2408 * @returns \c true if equal, or \c false if not. 2409 * @param pOptsA Options A to compare. 2410 * @param pOptsB Options B to compare Options A with. 2411 */ 2412 bool AudioTestSetVerifyOptsAreEqual(PAUDIOTESTVERIFYOPTS pOptsA, PAUDIOTESTVERIFYOPTS pOptsB) 2413 { 2414 if (pOptsA == pOptsB) 2415 return true; 2416 2417 return ( pOptsA->cMaxDiff == pOptsB->cMaxDiff 2418 && pOptsA->fKeepGoing == pOptsB->fKeepGoing 2419 && pOptsA->uMaxDiffPercent == pOptsB->uMaxDiffPercent 2420 && pOptsA->uMaxSizePercent == pOptsB->uMaxSizePercent); 2393 2421 } 2394 2422 -
trunk/src/VBox/Devices/Audio/AudioTest.h
r91135 r91178 317 317 318 318 void AudioTestSetVerifyOptsInitStrict(PAUDIOTESTVERIFYOPTS pOpts); 319 void AudioTestSetVerifyOptsInit(PAUDIOTESTVERIFYOPTS pOpts); 320 bool AudioTestSetVerifyOptsAreEqual(PAUDIOTESTVERIFYOPTS pOptsA, PAUDIOTESTVERIFYOPTS pOptsB); 321 319 322 int AudioTestSetVerify(PAUDIOTESTSET pSetA, PAUDIOTESTSET pSetB, PAUDIOTESTERRORDESC pErrDesc); 320 323 int AudioTestSetVerifyEx(PAUDIOTESTSET pSetA, PAUDIOTESTSET pSetB, PAUDIOTESTVERIFYOPTS pOpts, PAUDIOTESTERRORDESC pErrDesc);
Note:
See TracChangeset
for help on using the changeset viewer.