VirtualBox

Changeset 54947 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Mar 25, 2015 4:52:56 PM (10 years ago)
Author:
vboxsync
Message:

DSound: Always report at least 2 capture devices to avoid warnings.

File:
1 edited

Legend:

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

    r54946 r54947  
    14801480
    14811481    DSLOGREL(("DSound: Found %RU32 host capturing devices\n", pCfg->cMaxHstStrmsIn));
    1482     if (pCfg->cMaxHstStrmsIn == 0)
    1483         pCfg->cMaxHstStrmsIn = 1; /* Support at least one stream. */
     1482    if (pCfg->cMaxHstStrmsIn < 2)
     1483    {
     1484        DSLOGREL(("DSound: Adjusting the number of host capturing devices from %RU32 to 2\n", pCfg->cMaxHstStrmsIn));
     1485        pCfg->cMaxHstStrmsIn = 2; /* Support at least two streams (line in + mic). */
     1486    }
    14841487
    14851488    return VINF_SUCCESS;
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