VirtualBox

Changeset 91531 in vbox for trunk


Ignore:
Timestamp:
Oct 1, 2021 8:48:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147225
Message:

Audio/Validation Kit: Initial implementation of two-pass audio data normalization, which is done before working on the data. Also, a search window has been added when treating / classifying audio data [build fix]. ​bugref:10008

File:
1 edited

Legend:

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

    r91530 r91531  
    21602160    AssertRCReturn(rc, rc);
    21612161
    2162     double dbRatio;
     2162    double dbRatio = 0.0;
    21632163    rc = audioTestFileNormalizePCM(pObj->File.hFile, pProps, cbSize, dbNormalizePercent, hFileDst, &dbRatio);
    21642164    if (RT_SUCCESS(rc))
    21652165    {
    2166         int rc2 = audioTestErrorDescAddInfo(pVerJob->pErr, pVerJob->idxTest, "Normalized '%s' (ratio is ~%RU64%%)\n", pObj->szName, dbRatio);
     2166        int rc2 = audioTestErrorDescAddInfo(pVerJob->pErr, pVerJob->idxTest, "Normalized '%s' (ratio is %u.%02u%%)\n",
     2167                                            pObj->szName, (unsigned)dbRatio, (unsigned)(dbRatio * 100) % 100);
    21672168        AssertRC(rc2);
    21682169    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette