VirtualBox

Changeset 68902 in vbox


Ignore:
Timestamp:
Sep 28, 2017 9:23:18 AM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Removed assertions from DrvAudioHlpStreamCfgIsValid() and DrvAudioHlpPCMPropsAreValid().

File:
1 edited

Legend:

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

    r68390 r68902  
    771771                   && pProps->cChannels <= 8);
    772772
    773     AssertMsg(fValid, ("Channel count (%RU8) invalid\n", pProps->cChannels));
    774 
    775773    if (fValid)
    776774    {
     
    786784                break;
    787785        }
    788 
    789         AssertMsg(fValid, ("Bits (%RU8) invalid\n", pProps->cBits));
    790786    }
    791787
     
    794790
    795791    fValid &= pProps->uHz > 0;
    796     AssertMsg(fValid, ("Hz (%RU32) invalid\n", pProps->uHz));
    797 
    798792    fValid &= pProps->cShift == PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pProps->cBits, pProps->cChannels);
    799     AssertMsg(fValid, ("Shift (%RU8) invalid\n", pProps->cShift));
    800 
    801793    fValid &= pProps->fSwapEndian == false; /** @todo Handling Big Endian audio data is not supported yet. */
    802     AssertMsg(fValid, ("Swap endian (%RTbool) invalid\n", pProps->fSwapEndian));
    803794
    804795    return fValid;
     
    862853    bool fValid = (   pCfg->enmDir == PDMAUDIODIR_IN
    863854                   || pCfg->enmDir == PDMAUDIODIR_OUT);
    864     AssertMsg(fValid, ("Stream direction not set / invalid\n"));
    865855
    866856    fValid &= (   pCfg->enmLayout == PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED
    867857               || pCfg->enmLayout == PDMAUDIOSTREAMLAYOUT_RAW);
    868     AssertMsg(fValid, ("Stream layout not set / invalid\n"));
    869858
    870859    if (fValid)
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