VirtualBox

Changeset 32696 in vbox


Ignore:
Timestamp:
Sep 22, 2010 11:55:54 AM (14 years ago)
Author:
vboxsync
Message:

AC97: Assert if the amount read/written isn not aligned (can lead to bad problems).

File:
1 edited

Legend:

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

    r32304 r32696  
    789789                written += temp;
    790790                elapsed -= temp;
     791                Assert((temp & 1) == 0);    /* Else the following shift won't work */
    791792                r->picb -= (temp >> 1);
    792793                break;
     
    796797                temp = read_audio (s, r, elapsed, &stop);
    797798                elapsed -= temp;
     799                Assert((temp & 1) == 0);    /* Else the following shift won't work */
    798800                r->picb -= (temp >> 1);
    799801                break;
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