Changeset 88052 in vbox
- Timestamp:
- Mar 9, 2021 2:14:37 PM (4 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudiohostenuminline.h
r88051 r88052 48 48 49 49 50 /** 51 * Allocates an audio device. 50 /** @defgroup grp_pdm_audio_host_enum_inline The PDM Host Audio Enumeration Helper APIs 51 * 52 * @ingroup grp_pdm 53 * @{ 54 */ 55 56 57 /** 58 * Allocates a host audio device for an enumeration result. 52 59 * 53 60 * @returns Newly allocated audio device, or NULL on failure. … … 57 64 * after it in its private structure. 58 65 */ 59 DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudio DeviceAlloc(size_t cb)66 DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudioHostDevAlloc(size_t cb) 60 67 { 61 68 AssertReturn(cb >= sizeof(PDMAUDIOHOSTDEV), NULL); … … 76 83 77 84 /** 78 * Frees a n audio device allocated by PDMAudioDeviceAlloc.85 * Frees a host audio device allocated by PDMAudioHostDevAlloc. 79 86 * 80 87 * @param pDev The device to free. NULL is ignored. 81 88 */ 82 DECLINLINE(void) PDMAudio DeviceFree(PPDMAUDIOHOSTDEV pDev)89 DECLINLINE(void) PDMAudioHostDevFree(PPDMAUDIOHOSTDEV pDev) 83 90 { 84 91 if (pDev) … … 94 101 95 102 /** 96 * Duplicates a n audio deviceentry.103 * Duplicates a host audio device enumeration entry. 97 104 * 98 105 * @returns Duplicated audio device entry on success, or NULL on failure. … … 100 107 * @param fOnlyCoreData 101 108 */ 102 DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudio DeviceDup(PPDMAUDIOHOSTDEV pDev, bool fOnlyCoreData)109 DECLINLINE(PPDMAUDIOHOSTDEV) PDMAudioHostDevDup(PPDMAUDIOHOSTDEV pDev, bool fOnlyCoreData) 103 110 { 104 111 AssertPtrReturn(pDev, NULL); … … 109 116 AssertReturn(cbToDup >= sizeof(*pDev), NULL); 110 117 111 PPDMAUDIOHOSTDEV pDevDup = PDMAudio DeviceAlloc(cbToDup);118 PPDMAUDIOHOSTDEV pDevDup = PDMAudioHostDevAlloc(cbToDup); 112 119 if (pDevDup) 113 120 { … … 154 161 RTListNodeRemove(&pDev->Node); 155 162 156 PDMAudio DeviceFree(pDev);163 PDMAudioHostDevFree(pDev); 157 164 158 165 pDevEnm->cDevices--; … … 210 217 || enmUsage == PDMAUDIODIR_INVALID /*all*/) 211 218 { 212 PPDMAUDIOHOSTDEV pDstDev = PDMAudio DeviceDup(pSrcDev, fOnlyCoreData);219 PPDMAUDIOHOSTDEV pDstDev = PDMAudioHostDevDup(pSrcDev, fOnlyCoreData); 213 220 AssertReturn(pDstDev, VERR_NO_MEMORY); 214 221 … … 279 286 280 287 /** The max string length for all PDMAUDIOHOSTDEV_F_XXX. 281 * @sa PDMAudio DeviceFlagsToString */288 * @sa PDMAudioHostDevFlagsToString */ 282 289 #define PDMAUDIOHOSTDEV_MAX_FLAGS_STRING_LEN (7 * 8) 283 290 … … 291 298 * @param fFlags Audio flags (PDMAUDIOHOSTDEV_F_XXX) to convert. 292 299 */ 293 DECLINLINE(const char *) PDMAudio DeviceFlagsToString(char pszDst[PDMAUDIOHOSTDEV_MAX_FLAGS_STRING_LEN], uint32_t fFlags)300 DECLINLINE(const char *) PDMAudioHostDevFlagsToString(char pszDst[PDMAUDIOHOSTDEV_MAX_FLAGS_STRING_LEN], uint32_t fFlags) 294 301 { 295 302 static const struct { const char *pszMnemonic; uint32_t cchMnemonic; uint32_t fFlag; } s_aFlags[] = … … 343 350 LogFunc(("Device '%s':\n", pDev->szName)); 344 351 LogFunc((" Usage = %s\n", PDMAudioDirGetName(pDev->enmUsage))); 345 LogFunc((" Flags = %s\n", PDMAudio DeviceFlagsToString(szFlags, pDev->fFlags)));352 LogFunc((" Flags = %s\n", PDMAudioHostDevFlagsToString(szFlags, pDev->fFlags))); 346 353 LogFunc((" Input channels = %RU8\n", pDev->cMaxInputChannels)); 347 354 LogFunc((" Output channels = %RU8\n", pDev->cMaxOutputChannels)); … … 351 358 } 352 359 360 /** @} */ 361 353 362 #endif /* !VBOX_INCLUDED_vmm_pdmaudiohostenuminline_h */ -
trunk/include/VBox/vmm/pdmaudioinline.h
r88029 r88052 48 48 #include <iprt/string.h> 49 49 50 51 /** @defgroup grp_pdm_audio_inline The PDM Audio Helper APIs 52 * @ingroup grp_pdm 53 * @{ 54 */ 50 55 51 56 /* Fix later: */ … … 869 874 } 870 875 876 /** @} */ 877 871 878 #endif /* !VBOX_INCLUDED_vmm_pdmaudioinline_h */
Note:
See TracChangeset
for help on using the changeset viewer.