VirtualBox

Ignore:
Timestamp:
Mar 8, 2021 11:55:51 AM (4 years ago)
Author:
vboxsync
Message:

Audio: DrvAudioHlpBytesIsAligned -> DrvAudioHlpIsBytesAligned; switched parameters, added div/0 check. bugref:9890

File:
1 edited

Legend:

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

    r88002 r88004  
    532532        if (cbTransferHeuristics >= 8)
    533533        {
    534             ASSERT_GUEST_LOGREL_MSG(DrvAudioHlpBytesIsAligned(cbTransferHeuristics, &pStreamR3->State.Mapping.PCMProps),
     534            ASSERT_GUEST_LOGREL_MSG(DrvAudioHlpIsBytesAligned(cbTransferHeuristics, &pStreamR3->State.Mapping.PCMProps),
    535535                                    ("We arrived at a misaligned transfer size for stream #%RU8: %#x (%u)\n",
    536536                                     uSD, cbTransferHeuristics, cbTransferHeuristics));
     
    549549            pStreamShared->State.cbTransferSize  = cbTransferHeuristics;
    550550            pStreamShared->State.cbTransferChunk = cbTransferHeuristics;
    551             ASSERT_GUEST_LOGREL_MSG(DrvAudioHlpBytesIsAligned(cbTransferHeuristics, &pStreamR3->State.Mapping.PCMProps),
     551            ASSERT_GUEST_LOGREL_MSG(DrvAudioHlpIsBytesAligned(cbTransferHeuristics, &pStreamR3->State.Mapping.PCMProps),
    552552                                    ("We arrived at a misaligned transfer size for stream #%RU8: %#x (%u)\n",
    553553                                     uSD, cbTransferHeuristics, cbTransferHeuristics));
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