VirtualBox

Changeset 89842 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jun 23, 2021 8:11:53 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145299
Message:

AudioTest.cpp: Build fix (gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9)). bugref:10008

File:
1 edited

Legend:

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

    r89841 r89842  
    18291829        VerJob.idxTest = i;
    18301830
    1831         AUDIOTESTOBJHANDLE hTest;
     1831        AUDIOTESTOBJHANDLE hTest; /** @todo r=bird: This is not a handle if you RTStrPrintf to its members. A handle doesn't have members, it's opque. */
    18321832        RTStrPrintf(hTest.szSec, sizeof(hTest.szSec), "test_%04RU32", i);
    18331833
    1834         AUDIOTESTTYPE enmTestTypeA;
     1834        AUDIOTESTTYPE enmTestTypeA = AUDIOTESTTYPE_INVALID;
    18351835        rc = audioTestGetValueUInt32(VerJob.pSetA, &hTest, "test_type", (uint32_t *)&enmTestTypeA);
    18361836        CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, "Test type A not found");
    18371837
    1838         AUDIOTESTTYPE enmTestTypeB;
     1838        AUDIOTESTTYPE enmTestTypeB = AUDIOTESTTYPE_INVALID;
    18391839        rc = audioTestGetValueUInt32(VerJob.pSetB, &hTest, "test_type", (uint32_t *)&enmTestTypeB);
    18401840        CHECK_RC_MSG_MAYBE_RET(rc, pVerJob, "Test type B not found");
     
    18451845            {
    18461846                if (enmTestTypeB == AUDIOTESTTYPE_TESTTONE_RECORD)
    1847                 {
    18481847                    rc = audioTestVerifyTestTone(&VerJob, &hTest, VerJob.pSetA, VerJob.pSetB);
    1849                 }
    18501848                else
    18511849                    rc = audioTestErrorDescAdd(pErrDesc, i, "Playback test types don't match (set A=%#x, set B=%#x)",
     
    18571855            {
    18581856                if (enmTestTypeB == AUDIOTESTTYPE_TESTTONE_PLAY)
    1859                 {
    18601857                    rc = audioTestVerifyTestTone(&VerJob, &hTest, VerJob.pSetB, VerJob.pSetA);
    1861                 }
    18621858                else
    18631859                    rc = audioTestErrorDescAdd(pErrDesc, i, "Recording test types don't match (set A=%#x, set B=%#x)",
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