VirtualBox

Ignore:
Timestamp:
Nov 3, 2021 5:33:11 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: More code for audio data beacon handling. Now has dedicated beacons for recording / playback tests [build fix]. bugref:10008

File:
1 edited

Legend:

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

    r92195 r92196  
    24732473            && pauBuf[i + 3] == byBeacon)
    24742474        {
    2475             //if (pBeacon->cbProcessed)
    2476             //{
    2477                 //LogRel(("AudioTestBeaconAddConsecutive: Beacon %s started (last was %RU32@%zu)\n", AudioTestBeaconTypeGetName(pBeacon->enmType), cbBeacon, i));
    2478                 if (offGap)
    2479                 {
    2480                     pBeacon->cbProcessed = 0;
    2481                 }
    2482                 pBeacon->cbProcessed += cbStep;
    2483                 offGap = 0;
    2484                 //fInBeacon = true;
    2485                 //offLastBeacon = i;
    2486             //}
    2487             //cbBeacon += cbFrameSize;
     2475            if (offGap)
     2476            {
     2477                pBeacon->cbProcessed = 0;
     2478            }
     2479            pBeacon->cbProcessed += cbStep;
     2480            offGap = 0;
    24882481        }
    24892482        else
    2490         {
    2491         #if 0
    2492             if (fInBeacon)
    2493             {
    2494                 //LogRel(("AudioTestBeaconAddConsecutive: Beacon %s ended (%RU32@%zu)\n", AudioTestBeaconTypeGetName(pBeacon->enmType), cbBeacon, offLastBeacon));
    2495                 fInBeacon = false;
    2496                 continue;
    2497             }
    2498         #endif
    24992483            offGap  = i;
    2500         }
    2501     }
    2502 
    2503 #if 0
    2504     if (   cbBeacon
    2505         && (   fInBeacon
    2506             || offLastBeacon == 0)
    2507        )
    2508     {
    2509         pBeacon->cbProcessed += cbBeacon;
    2510         Assert(pBeacon->cbProcessed <= pBeacon->cbToProcess);
    2511     }
    2512 
    2513     if (cbBeacon)
    2514         LogRel(("AudioTestBeaconAddConsecutive: %s in=%RTbool cb=%RU32 -> cbProc=%RU32\n", AudioTestBeaconTypeGetName(pBeacon->enmType), fInBeacon, cbBeacon, pBeacon->cbProcessed));
    2515 //LogRel(("AudioTestBeaconAddConsecutive: Beacon proc finished (last was cbBuf=%RU32, fInBeacon=%RTbool, cbBeacon=%RU32, cbProc=%RU32)\n", cbBuf, fInBeacon, cbBeacon, pBeacon->cbProcessed));
    2516 #endif
     2484    }
    25172485
    25182486    Assert(pBeacon->cbProcessed >= cbProcessedInitial);
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