VirtualBox

Changeset 70124 in vbox


Ignore:
Timestamp:
Dec 14, 2017 10:58:42 AM (7 years ago)
Author:
vboxsync
Message:

Audio/HDA: If the current transfer is complete, reset our counter when doing a next transfer in hdaStreamTransfer().

File:
1 edited

Legend:

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

    r70123 r70124  
    10771077
    10781078        tsTransferNext = tsNow + (cbTransferNext * pStream->State.cTicksPerByte);
     1079
     1080        /**
     1081         * If the current transfer is complete, reset our counter.
     1082         * 
     1083         * This can happen for examlpe if the guest OS (like macOS) sets up
     1084         * big BDLEs without IOC bits set (but for the last one) and the
     1085         * transfer is complete before we reach such a BDL entry.
     1086         */
     1087        if (fTransferComplete)
     1088            pStream->State.cbTransferProcessed = 0;
    10791089    }
    10801090
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