VirtualBox

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


Ignore:
Timestamp:
Mar 11, 2016 12:59:22 PM (9 years ago)
Author:
vboxsync
Message:

Build fix for Solaris.

File:
1 edited

Legend:

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

    r59989 r59992  
    4040#if ((SOUND_VERSION > 360) && (defined(OSS_SYSINFO)))
    4141/* OSS > 3.6 has a new syscall available for querying a bit more detailed information
    42  * about OSS' audio capabilities. */
     42 * about OSS' audio capabilities. This is handy for e.g. Solaris. */
    4343# define VBOX_WITH_OSS_SYSINFO 1
    4444#endif
     
    609609            if (err == 0)
    610610            {
    611                 LogRel2(("OSS: Number of DSPs: %d\n", ossVer.numaudios));
    612                 LogRel2(("OSS: Number of mixers: %d\n", ossVer.nummixers));
    613                 /** @todo Determine number of input devices + output devices. */
     611                LogRel2(("OSS: Number of DSPs: %d\n", ossInfo.numaudios));
     612                LogRel2(("OSS: Number of mixers: %d\n", ossInfo.nummixers));
     613
     614                int cDev = ossInfo.nummixers;
     615                if (!cDev)
     616                    cDev = ossInfo.numaudios;
     617
     618                pCfg->cSources        = cDev;
     619                pCfg->cSinks          = cDev;
     620
     621                pCfg->cMaxStreamsIn   = UINT32_MAX;
     622                pCfg->cMaxStreamsOut  = UINT32_MAX;
    614623            }
    615624            else
     
    621630                pCfg->cSinks          = 1;
    622631
    623                 pCfg->cMaxStreamsIn   = UINT32_MAX; /* Line in + microphone in. */
     632                pCfg->cMaxStreamsIn   = UINT32_MAX;
    624633                pCfg->cMaxStreamsOut  = UINT32_MAX;
    625634#ifdef VBOX_WITH_OSS_SYSINFO
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