VirtualBox

Changeset 73539 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 7, 2018 9:51:47 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Added (un)signed format checks for DrvAudioHlpPCMPropsAreValid().

File:
1 edited

Legend:

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

    r73532 r73539  
    829829        switch (pProps->cBytes)
    830830        {
    831             case 1:
    832             case 2:
    833             /** @todo Do we need support for 24-bit samples? */
    834             case 4:
     831            case 1: /* 8 bit */
     832               if (pProps->fSigned)
     833                   fValid = false;
     834               break;
     835           case 2: /* 16 bit */
     836               if (!pProps->fSigned)
     837                   fValid = false;
     838               break;
     839           /** @todo Do we need support for 24 bit samples? */
     840           case 4: /* 32 bit */
     841               if (!pProps->fSigned)
     842                   fValid = false;
    835843                break;
    836844            default:
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