Changeset 88045 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Mar 9, 2021 1:27:51 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143176
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r88044 r88045 310 310 typedef uint32_t PDMAUDIODEVLATSPECSEC; 311 311 312 /** @name PDMAUDIO DEV_FLAGS_XXX312 /** @name PDMAUDIOHOSTDEV_F_XXX 313 313 * @{ */ 314 314 /** No flags set. */ 315 #define PDMAUDIO DEV_FLAGS_NONE UINT32_C(0)315 #define PDMAUDIOHOSTDEV_F_NONE UINT32_C(0) 316 316 /** The device marks the default device within the host OS. */ 317 #define PDMAUDIO DEV_FLAGS_DEFAULT RT_BIT_32(0)317 #define PDMAUDIOHOSTDEV_F_DEFAULT RT_BIT_32(0) 318 318 /** The device can be removed at any time and we have to deal with it. */ 319 #define PDMAUDIO DEV_FLAGS_HOTPLUG RT_BIT_32(1)319 #define PDMAUDIOHOSTDEV_F_HOTPLUG RT_BIT_32(1) 320 320 /** The device is known to be buggy and needs special treatment. */ 321 #define PDMAUDIO DEV_FLAGS_BUGGY RT_BIT_32(2)321 #define PDMAUDIOHOSTDEV_F_BUGGY RT_BIT_32(2) 322 322 /** Ignore the device, no matter what. */ 323 #define PDMAUDIO DEV_FLAGS_IGNORE RT_BIT_32(3)323 #define PDMAUDIOHOSTDEV_F_IGNORE RT_BIT_32(3) 324 324 /** The device is present but marked as locked by some other application. */ 325 #define PDMAUDIO DEV_FLAGS_LOCKED RT_BIT_32(4)325 #define PDMAUDIOHOSTDEV_F_LOCKED RT_BIT_32(4) 326 326 /** The device is present but not in an alive state (dead). */ 327 #define PDMAUDIO DEV_FLAGS_DEAD RT_BIT_32(5)327 #define PDMAUDIOHOSTDEV_F_DEAD RT_BIT_32(5) 328 328 /** Set if the extra backend specific data cannot be duplicated. */ 329 #define PDMAUDIO DEV_FLAGS_NO_DUP RT_BIT_32(31)329 #define PDMAUDIOHOSTDEV_F_NO_DUP RT_BIT_32(31) 330 330 /** @} */ 331 331 … … 346 346 /** The device is an (external) USB device. */ 347 347 PDMAUDIODEVICETYPE_USB, 348 /** End of valid values. */ 349 PDMAUDIODEVICETYPE_END, 348 350 /** Hack to blow the type up to 32-bit. */ 349 351 PDMAUDIODEVICETYPE_32BIT_HACK = 0x7fffffff … … 351 353 352 354 /** 353 * Audio device info (enumeration result). 355 * Host audio device info, part of enumeration result. 356 * 354 357 * @sa PDMAUDIOHOSTENUM, PDMIHOSTAUDIO::pfnGetDevices 355 358 */ 356 typedef struct PDMAUDIO DEVICE359 typedef struct PDMAUDIOHOSTDEV 357 360 { 358 361 /** List entry (like PDMAUDIOHOSTENUM::LstDevices). */ 359 362 RTLISTNODE Node; 360 /** Magic value (PDMAUDIO DEVICE_MAGIC). */363 /** Magic value (PDMAUDIOHOSTDEV_MAGIC). */ 361 364 uint32_t uMagic; 362 365 /** Size of this structure and whatever backend specific data that follows it. */ … … 366 369 /** Usage of the device. */ 367 370 PDMAUDIODIR enmUsage; 368 /** Device flags, PDMAUDIO DEV_FLAGS_XXX. */371 /** Device flags, PDMAUDIOHOSTDEV_F_XXX. */ 369 372 uint32_t fFlags; 370 373 /** Reference count indicating how many audio streams currently are relying on this device. */ … … 388 391 uint64_t uPadding[ARCH_BITS >= 64 ? 3 : 4]; 389 392 } Type; 390 /** Friendly name of the device, if any. */393 /** Friendly name of the device, if any. Could be truncated. */ 391 394 char szName[64]; 392 } PDMAUDIO DEVICE;393 AssertCompileSizeAlignment(PDMAUDIO DEVICE, 32);395 } PDMAUDIOHOSTDEV; 396 AssertCompileSizeAlignment(PDMAUDIOHOSTDEV, 16); 394 397 /** Pointer to audio device info (enum result). */ 395 typedef PDMAUDIO DEVICE *PPDMAUDIODEVICE;398 typedef PDMAUDIOHOSTDEV *PPDMAUDIOHOSTDEV; 396 399 /** Pointer to a const audio device info (enum result). */ 397 typedef PDMAUDIO DEVICE const *PCPDMAUDIODEVICE;398 399 /** Magic value for PDMAUDIO DEVICE. (Armando Anthony "Chick" Corea) */400 #define PDMAUDIO DEVICE_MAGICUINT32_C(0x19410612)401 /** Magic value for PDMAUDIO DEVICEafter free. */402 #define PDMAUDIO DEVICE_MAGIC_DEADUINT32_C(0x20210209)400 typedef PDMAUDIOHOSTDEV const *PCPDMAUDIOHOSTDEV; 401 402 /** Magic value for PDMAUDIOHOSTDEV. (Armando Anthony "Chick" Corea) */ 403 #define PDMAUDIOHOSTDEV_MAGIC UINT32_C(0x19410612) 404 /** Magic value for PDMAUDIOHOSTDEV after free. */ 405 #define PDMAUDIOHOSTDEV_MAGIC_DEAD UINT32_C(0x20210209) 403 406 404 407 … … 414 417 /** Number of audio devices in the list. */ 415 418 uint32_t cDevices; 416 /** List of audio devices (PDMAUDIO DEVICE). */419 /** List of audio devices (PDMAUDIOHOSTDEV). */ 417 420 RTLISTANCHOR LstDevices; 418 421 } PDMAUDIOHOSTENUM;
Note:
See TracChangeset
for help on using the changeset viewer.