Changeset 103566 in vbox
- Timestamp:
- Feb 26, 2024 12:53:01 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r103415 r103566 2577 2577 && pauBuf[i + 3] == byBeacon) 2578 2578 { 2579 offBeacon = i + cbStep; /* Point to data right *after* the beacon. */ 2580 2579 2581 /* Make sure to handle overflows and let beacon start from scratch. */ 2580 2582 pBeacon->cbUsed = (pBeacon->cbUsed + cbStep) % pBeacon->cbSize; … … 2582 2584 { 2583 2585 pBeacon->cbUsed = pBeacon->cbSize; 2584 offBeacon = i + cbStep; /* Point to data right *after* the beacon. */2586 break; 2585 2587 } 2586 2588 } 2587 2589 else 2588 2590 { 2589 /* If beacon is not complete yet, we detected a gap here. Start all over then. */ 2590 if (RT_LIKELY(pBeacon->cbUsed != pBeacon->cbSize)) 2591 pBeacon->cbUsed = 0; 2591 /* If beacon is complete, just skip, otherwise we detected a gap here. Start all over then. */ 2592 if (RT_UNLIKELY(pBeacon->cbUsed == pBeacon->cbSize)) 2593 break; 2594 2595 pBeacon->cbUsed = 0; 2596 offBeacon = UINT64_MAX; 2592 2597 } 2593 2598 }
Note:
See TracChangeset
for help on using the changeset viewer.