Changeset 88015 in vbox for trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
- Timestamp:
- Mar 8, 2021 1:05:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r88012 r88015 792 792 793 793 /** 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 */ 800 bool DrvAudioHlpStreamCfgMatchesPcmProps(PCPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps) 801 { 802 AssertPtrReturn(pCfg, false); 803 return DrvAudioHlpPcmPropsAreEqual(pProps, &pCfg->Props); 804 } 805 806 /** 794 807 * Frees an allocated audio stream configuration. 795 808 * … … 1335 1348 * @param pProps2 Second properties to compare. 1336 1349 */ 1337 bool DrvAudioHlpP CMPropsAreEqual(PCPDMAUDIOPCMPROPS pProps1, PCPDMAUDIOPCMPROPS pProps2)1350 bool DrvAudioHlpPcmPropsAreEqual(PCPDMAUDIOPCMPROPS pProps1, PCPDMAUDIOPCMPROPS pProps2) 1338 1351 { 1339 1352 AssertPtrReturn(pProps1, false); … … 1395 1408 1396 1409 return fValid; 1397 }1398 1399 /**1400 * Checks whether the given PCM properties are equal with the given1401 * 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);1413 1410 } 1414 1411
Note:
See TracChangeset
for help on using the changeset viewer.