VirtualBox

Ignore:
Timestamp:
Mar 8, 2021 1:05:26 PM (4 years ago)
Author:
vboxsync
Message:

Audio: DrvAudioHlpPCMPropsAreEqual -> DrvAudioHlpPcmPropsAreEqual & DrvAudioHlpStreamCfgMatchesPcmProps (overloading functions is confusing, esp. when only one variant was ever used). bugref:9890

File:
1 edited

Legend:

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

    r88012 r88015  
    792792
    793793/**
     794 * Checks whether stream configuration matches the given PCM properties.
     795 *
     796 * @returns @c true if equal, @c false if not.
     797 * @param   pCfg    Stream configuration.
     798 * @param   pProps  PCM properties to match with.
     799 */
     800bool DrvAudioHlpStreamCfgMatchesPcmProps(PCPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps)
     801{
     802    AssertPtrReturn(pCfg, false);
     803    return DrvAudioHlpPcmPropsAreEqual(pProps, &pCfg->Props);
     804}
     805
     806/**
    794807 * Frees an allocated audio stream configuration.
    795808 *
     
    13351348 * @param   pProps2             Second properties to compare.
    13361349 */
    1337 bool DrvAudioHlpPCMPropsAreEqual(PCPDMAUDIOPCMPROPS pProps1, PCPDMAUDIOPCMPROPS pProps2)
     1350bool DrvAudioHlpPcmPropsAreEqual(PCPDMAUDIOPCMPROPS pProps1, PCPDMAUDIOPCMPROPS pProps2)
    13381351{
    13391352    AssertPtrReturn(pProps1, false);
     
    13951408
    13961409    return fValid;
    1397 }
    1398 
    1399 /**
    1400  * Checks whether the given PCM properties are equal with the given
    1401  * stream configuration.
    1402  *
    1403  * @returns @c true if equal, @c false if not.
    1404  * @param   pProps              PCM properties to compare.
    1405  * @param   pCfg                Stream configuration to compare.
    1406  */
    1407 bool DrvAudioHlpPCMPropsAreEqual(PCPDMAUDIOPCMPROPS pProps, PCPDMAUDIOSTREAMCFG pCfg)
    1408 {
    1409     AssertPtrReturn(pProps, false);
    1410     AssertPtrReturn(pCfg,   false);
    1411 
    1412     return DrvAudioHlpPCMPropsAreEqual(pProps, &pCfg->Props);
    14131410}
    14141411
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