- Timestamp:
- Feb 10, 2017 4:11:40 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.h
r65675 r65738 159 159 bool DrvAudioHlpPCMPropsAreEqual(const PPDMAUDIOPCMPROPS pPCMProps, const PPDMAUDIOSTREAMCFG pCfg); 160 160 bool DrvAudioHlpPCMPropsAreValid(const PPDMAUDIOPCMPROPS pProps); 161 void DrvAudioHlpPCMPropsPrint(const PPDMAUDIOPCMPROPS pProps); 161 162 int DrvAudioHlpPCMPropsToStreamCfg(const PPDMAUDIOPCMPROPS pPCMProps, PPDMAUDIOSTREAMCFG pCfg); 162 163 const char *DrvAudioHlpRecSrcToStr(const PDMAUDIORECSOURCE enmRecSource); -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r65675 r65738 841 841 842 842 /** 843 * Prints PCM properties to the debug log. 844 * 845 * @param pProps Stream configuration to log. 846 */ 847 void DrvAudioHlpPCMPropsPrint(const PPDMAUDIOPCMPROPS pProps) 848 { 849 AssertPtrReturnVoid(pProps); 850 851 Log(("uHz=%RU32, cChannels=%RU8, cBits=%RU8%s", 852 pProps->uHz, pProps->cChannels, pProps->cBits, pProps->fSigned ? "S" : "U")); 853 } 854 855 /** 843 856 * Converts PCM properties to a audio stream configuration. 844 857 * 845 858 * @return IPRT status code. 846 * @param pP CMPropsPointer to PCM properties to convert.859 * @param pProps Pointer to PCM properties to convert. 847 860 * @param pCfg Pointer to audio stream configuration to store result into. 848 861 */ 849 int DrvAudioHlpPCMPropsToStreamCfg(const PPDMAUDIOPCMPROPS pP CMProps, PPDMAUDIOSTREAMCFG pCfg)850 { 851 AssertPtrReturn(pP CMProps, VERR_INVALID_POINTER);852 AssertPtrReturn(pCfg, 853 854 memcpy(&pCfg->Props, pP CMProps, sizeof(PDMAUDIOPCMPROPS));862 int DrvAudioHlpPCMPropsToStreamCfg(const PPDMAUDIOPCMPROPS pProps, PPDMAUDIOSTREAMCFG pCfg) 863 { 864 AssertPtrReturn(pProps, VERR_INVALID_POINTER); 865 AssertPtrReturn(pCfg, VERR_INVALID_POINTER); 866 867 memcpy(&pCfg->Props, pProps, sizeof(PDMAUDIOPCMPROPS)); 855 868 return VINF_SUCCESS; 856 869 }
Note:
See TracChangeset
for help on using the changeset viewer.