VirtualBox

Changeset 89294 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 26, 2021 2:14:21 PM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: The Validation Kit audio driver now also uses the sent test tone frequency. bugref:10008

Location:
trunk/src/VBox/Devices/Audio
Files:
3 edited

Legend:

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

    r89293 r89294  
    7878    /** The PCM properties. */
    7979    PDMAUDIOPCMPROPS Props;
     80    /** Tone frequency (in Hz) to use.
     81     *  Will be later converted to a double value. */
     82    uint16_t         uFreq;
    8083    /** Prequel (in ms) to play silence. Optional and can be set to 0. */
    8184    RTMSINTERVAL     msPrequel;
  • trunk/src/VBox/Devices/Audio/AudioTestServiceProtocol.h

    r89226 r89294  
    135135    /** Test tone parameters for playback. */
    136136    AUDIOTESTTONEPARMS ToneParms;
     137    uint8_t            aPadding[12];
    137138} ATSPKTREQTONEPLAY;
    138139AssertCompileSizeAlignment(ATSPKTREQTONEPLAY, ATSPKT_ALIGNMENT);
  • trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp

    r89291 r89294  
    149149    memcpy(&pTestData->t.TestTone.Parms, pToneParms, sizeof(AUDIOTESTTONEPARMS));
    150150
    151     AudioTestToneInit(&pTestData->t.TestTone.Tone, &pStreamCfg->Props, 8000 /* Hz */); /** @todo BUGBUG Fix this! */
     151    AudioTestToneInit(&pTestData->t.TestTone.Tone, &pStreamCfg->Props, pTestData->t.TestTone.Parms.uFreq);
    152152
    153153    pTestData->t.TestTone.cbToWrite = PDMAudioPropsMilliToBytes(&pStreamCfg->Props,
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