VirtualBox

Changeset 91667 in vbox


Ignore:
Timestamp:
Oct 11, 2021 5:02:28 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Added "--normalize" argument to optionally enable/disable audio data normalization before verifying the data. ​bugref:10008

File:
1 edited

Legend:

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

    r91632 r91667  
    153153    VKAT_VERIFY_OPT_MAX_DIFF_COUNT = 900,
    154154    VKAT_VERIFY_OPT_MAX_DIFF_PERCENT,
    155     VKAT_VERIFY_OPT_MAX_SIZE_PERCENT
     155    VKAT_VERIFY_OPT_MAX_SIZE_PERCENT,
     156    VKAT_VERIFY_OPT_NORMALIZE
    156157};
    157158
     
    212213    { "--max-diff-count",      VKAT_VERIFY_OPT_MAX_DIFF_COUNT,     RTGETOPT_REQ_UINT32 },
    213214    { "--max-diff-percent",    VKAT_VERIFY_OPT_MAX_DIFF_PERCENT,   RTGETOPT_REQ_UINT8  },
    214     { "--max-size-percent",    VKAT_VERIFY_OPT_MAX_SIZE_PERCENT,   RTGETOPT_REQ_UINT8  }
     215    { "--max-size-percent",    VKAT_VERIFY_OPT_MAX_SIZE_PERCENT,   RTGETOPT_REQ_UINT8  },
     216    { "--normalize",           VKAT_VERIFY_OPT_NORMALIZE,          RTGETOPT_REQ_BOOL   }
    215217};
    216218
     
    11511153                break;
    11521154
     1155            case VKAT_VERIFY_OPT_NORMALIZE:
     1156                Opts.fNormalize = ValueUnion.f;
     1157                break;
     1158
    11531159            case VINF_GETOPT_NOT_OPTION:
    11541160                if (iTestSet == 0)
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