VirtualBox

Changeset 90047 in vbox


Ignore:
Timestamp:
Jul 6, 2021 9:05:41 AM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Renaming. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioTest.cpp

    r90046 r90047  
    17431743 * @returns VBox status code.
    17441744 * @returns Error if the verification failed and test verification job has fKeepGoing not set.
    1745  * @param   pVerify             Verification job to verify value for.
     1745 * @param   pVerJob             Verification job to verify value for.
    17461746 * @param   phObjA              Object handle A to verify value for.
    17471747 * @param   phObjB              Object handle B to verify value for.
     
    17511751 * @param   ...                 Variable aruments for error format string.
    17521752 */
    1753 static int audioTestVerifyValue(PAUDIOTESTVERIFYJOB pVerify,
     1753static int audioTestVerifyValue(PAUDIOTESTVERIFYJOB pVerJob,
    17541754                                PAUDIOTESTOBJINT phObjA, PAUDIOTESTOBJINT phObjB, const char *pszKey, const char *pszVal, const char *pszErrFmt, ...)
    17551755{
     
    17781778    if (RT_FAILURE(rc))
    17791779    {
    1780         int rc2 = audioTestErrorDescAddV(pVerify->pErr, pVerify->idxTest, rc, pszErrFmt, va);
     1780        int rc2 = audioTestErrorDescAddV(pVerJob->pErr, pVerJob->idxTest, rc, pszErrFmt, va);
    17811781        AssertRC(rc2);
    17821782    }
     
    17841784    va_end(va);
    17851785
    1786     return pVerify->fKeepGoing ? VINF_SUCCESS : rc;
     1786    return pVerJob->fKeepGoing ? VINF_SUCCESS : rc;
    17871787}
    17881788
     
    21442144 * @returns Error if the verification failed and test verification job has fKeepGoing not set.
    21452145 * @retval  VERR_
    2146  * @param   pVerify             Verification job to verify test tone for.
     2146 * @param   pVerJob             Verification job to verify test tone for.
    21472147 * @param   phTestA             Test handle of test tone A to verify tone B with.
    21482148 * @param   phTestB             Test handle of test tone B to verify tone A with.*
    21492149 */
    2150 static int audioTestVerifyTestTone(PAUDIOTESTVERIFYJOB pVerify, PAUDIOTESTOBJINT phTestA, PAUDIOTESTOBJINT phTestB)
     2150static int audioTestVerifyTestTone(PAUDIOTESTVERIFYJOB pVerJob, PAUDIOTESTOBJINT phTestA, PAUDIOTESTOBJINT phTestB)
    21512151{
    21522152    int rc;
     
    21562156     * More important items have precedence.
    21572157     */
    2158     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "error_rc", "0", "Test was reported as failed");
    2159     CHECK_RC_MAYBE_RET(rc, pVerify);
    2160     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "obj_count", NULL, "Object counts don't match");
    2161     CHECK_RC_MAYBE_RET(rc, pVerify);
    2162     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_freq_hz", NULL, "Tone frequency doesn't match");
    2163     CHECK_RC_MAYBE_RET(rc, pVerify);
    2164     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_prequel_ms", NULL, "Tone prequel (ms) doesn't match");
    2165     CHECK_RC_MAYBE_RET(rc, pVerify);
    2166     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_duration_ms", NULL, "Tone duration (ms) doesn't match");
    2167     CHECK_RC_MAYBE_RET(rc, pVerify);
    2168     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_sequel_ms", NULL, "Tone sequel (ms) doesn't match");
    2169     CHECK_RC_MAYBE_RET(rc, pVerify);
    2170     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_volume_percent", NULL, "Tone volume (percent) doesn't match");
    2171     CHECK_RC_MAYBE_RET(rc, pVerify);
    2172     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_pcm_hz", NULL, "Tone PCM Hz doesn't match");
    2173     CHECK_RC_MAYBE_RET(rc, pVerify);
    2174     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_pcm_channels", NULL, "Tone PCM channels don't match");
    2175     CHECK_RC_MAYBE_RET(rc, pVerify);
    2176     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_pcm_bits", NULL, "Tone PCM bits don't match");
    2177     CHECK_RC_MAYBE_RET(rc, pVerify);
    2178     rc = audioTestVerifyValue(pVerify, phTestA, phTestB, "tone_pcm_is_signed", NULL, "Tone PCM signed bit doesn't match");
    2179     CHECK_RC_MAYBE_RET(rc, pVerify);
    2180 
    2181     rc = audioTestObjGetTonePcmProps(phTestA, &pVerify->PCMProps);
    2182     CHECK_RC_MAYBE_RET(rc, pVerify);
     2158    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "error_rc", "0", "Test was reported as failed");
     2159    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2160    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "obj_count", NULL, "Object counts don't match");
     2161    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2162    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_freq_hz", NULL, "Tone frequency doesn't match");
     2163    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2164    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_prequel_ms", NULL, "Tone prequel (ms) doesn't match");
     2165    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2166    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_duration_ms", NULL, "Tone duration (ms) doesn't match");
     2167    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2168    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_sequel_ms", NULL, "Tone sequel (ms) doesn't match");
     2169    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2170    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_volume_percent", NULL, "Tone volume (percent) doesn't match");
     2171    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2172    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_pcm_hz", NULL, "Tone PCM Hz doesn't match");
     2173    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2174    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_pcm_channels", NULL, "Tone PCM channels don't match");
     2175    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2176    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_pcm_bits", NULL, "Tone PCM bits don't match");
     2177    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2178    rc = audioTestVerifyValue(pVerJob, phTestA, phTestB, "tone_pcm_is_signed", NULL, "Tone PCM signed bit doesn't match");
     2179    CHECK_RC_MAYBE_RET(rc, pVerJob);
     2180
     2181    rc = audioTestObjGetTonePcmProps(phTestA, &pVerJob->PCMProps);
     2182    CHECK_RC_MAYBE_RET(rc, pVerJob);
    21832183
    21842184    /*
    21852185     * Now the fun stuff, PCM data analysis.
    21862186     */
    2187     rc = audioTestVerifyTestToneData(pVerify, phTestA, phTestB);
     2187    rc = audioTestVerifyTestToneData(pVerJob, phTestA, phTestB);
    21882188    if (RT_FAILURE(rc))
    21892189    {
    2190        int rc2 = audioTestErrorDescAddError(pVerify->pErr, pVerify->idxTest, "Verififcation of test tone data failed\n");
     2190       int rc2 = audioTestErrorDescAddError(pVerJob->pErr, pVerJob->idxTest, "Verififcation of test tone data failed\n");
    21912191       AssertRC(rc2);
    21922192    }
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