VirtualBox

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


Ignore:
Timestamp:
Jun 26, 2017 12:41:12 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116367
Message:

Audio/DrvAudioCommon.cpp: Relax audio channels check in DrvAudioHlpPCMPropsAreValid().

File:
1 edited

Legend:

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

    r65738 r67606  
    787787 * Returns @c true if properties are valid, @c false if not.
    788788 * @param   pProps              PCM properties to check.
    789  *
    790  * @remarks Does *not* support surround (> 2 channels) yet! This is intentional, as
    791  *          we consider surround support as experimental / not enabled by default for now.
    792789 */
    793790bool DrvAudioHlpPCMPropsAreValid(const PPDMAUDIOPCMPROPS pProps)
     
    795792    AssertPtrReturn(pProps, false);
    796793
    797     bool fValid = (   pProps->cChannels == 1
    798                    || pProps->cChannels == 2); /* Either stereo (2) or mono (1), per stream. */
     794    /* Minimum 1 channel (mono), maximum 7.1 (= 8) channels. */
     795    bool fValid = (   pProps->cChannels >= 1
     796                   && pProps->cChannels <= 8);
    799797
    800798    if (fValid)
     
    874872 * Returns @c true if configuration is valid, @c false if not.
    875873 * @param   pCfg                Stream configuration to check.
    876  *
    877  * @remarks Does *not* support surround (> 2 channels) yet! This is intentional, as
    878  *          we consider surround support as experimental / not enabled by default for now.
    879874 */
    880875bool DrvAudioHlpStreamCfgIsValid(const PPDMAUDIOSTREAMCFG pCfg)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette