Changeset 76857 in vbox
- Timestamp:
- Jan 17, 2019 1:51:22 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.h
r76565 r76857 209 209 /** @} */ 210 210 211 /** @name Audio streamhelper methods.212 * @{ */ 213 void DrvAudioHlpStreamCfg Print(constPPDMAUDIOSTREAMCFG pCfg);211 /** @name Audio configuration helper methods. 212 * @{ */ 213 void DrvAudioHlpStreamCfgInit(PPDMAUDIOSTREAMCFG pCfg); 214 214 bool DrvAudioHlpStreamCfgIsValid(const PPDMAUDIOSTREAMCFG pCfg); 215 215 int DrvAudioHlpStreamCfgCopy(PPDMAUDIOSTREAMCFG pDstCfg, const PPDMAUDIOSTREAMCFG pSrcCfg); 216 216 PPDMAUDIOSTREAMCFG DrvAudioHlpStreamCfgDup(const PPDMAUDIOSTREAMCFG pCfg); 217 217 void DrvAudioHlpStreamCfgFree(PPDMAUDIOSTREAMCFG pCfg); 218 void DrvAudioHlpStreamCfgPrint(const PPDMAUDIOSTREAMCFG pCfg); 219 /** @} */ 220 221 /** @name Audio stream command helper methods. 222 * @{ */ 218 223 const char *DrvAudioHlpStreamCmdToStr(PDMAUDIOSTREAMCMD enmCmd); 219 224 /** @} */ 220 225 221 /** @name Audio stream helper methods.226 /** @name Audio stream status helper methods. 222 227 * @{ */ 223 228 bool DrvAudioHlpStreamStatusCanRead(PDMAUDIOSTREAMSTS enmStatus); -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r76679 r76857 936 936 AssertPtrReturn(pCfg, VERR_INVALID_POINTER); 937 937 938 DrvAudioHlpStreamCfgInit(pCfg); 939 938 940 memcpy(&pCfg->Props, pProps, sizeof(PDMAUDIOPCMPROPS)); 939 941 return VINF_SUCCESS; 942 } 943 944 /** 945 * Initializes a stream configuration with its default values. 946 * 947 * @param pCfg Pointer to stream to initialize. 948 */ 949 void DrvAudioHlpStreamCfgInit(PPDMAUDIOSTREAMCFG pCfg) 950 { 951 RT_BZERO(pCfg, sizeof(PDMAUDIOSTREAMCFG)); 952 953 pCfg->Backend.cfPreBuf = UINT32_MAX; /* Explicitly set to "undefined". */ 940 954 } 941 955
Note:
See TracChangeset
for help on using the changeset viewer.