Changeset 88031 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Mar 9, 2021 12:13:46 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143160
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r88026 r88031 354 354 typedef struct PDMAUDIODEVICE 355 355 { 356 /** List node. */356 /** List entry (like PDMAUDIODEVICEENUM::LstDevices). */ 357 357 RTLISTNODE Node; 358 /** Additional data which might be relevant for the current context. 359 * @todo r=bird: I would do this C++ style, having the host specific bits 360 * appended after this structure and downcast. */ 358 /** Additional data which might be relevant for the current context (follows 359 * immediately after the end of this structure). */ 361 360 void *pvData; 362 361 /** Size of the additional data. */ … … 374 373 /** Maximum number of output audio channels the device supports. */ 375 374 uint8_t cMaxOutputChannels; 375 uint8_t bAlignment[1]; 376 376 /** Device type union, based on enmType. */ 377 377 union … … 380 380 struct 381 381 { 382 /** Vendor ID. 383 * @todo r=bird: Why signed?? VUSB uses uint16_t for idVendor and idProduct! */ 384 int16_t VID; 382 /** Vendor ID. */ 383 uint16_t idVendor; 385 384 /** Product ID. */ 386 int16_t PID;385 uint16_t idProduct; 387 386 } USB; 387 uint64_t uPadding[2]; 388 388 } Type; 389 389 /** Friendly name of the device, if any. */ 390 390 char szName[64]; 391 391 } PDMAUDIODEVICE; 392 AssertCompileSizeAlignment(PDMAUDIODEVICE, 32); 392 393 /** Pointer to audio device info (enum result). */ 393 394 typedef PDMAUDIODEVICE *PPDMAUDIODEVICE; 395 /** Pointer to a const audio device info (enum result). */ 396 typedef PDMAUDIODEVICE const *PCPDMAUDIODEVICE; 394 397 395 398 /** 396 399 * An audio device enumeration result. 400 * 397 401 * @sa PDMIHOSTAUDIO::pfnGetDevices 398 402 */ 399 403 typedef struct PDMAUDIODEVICEENUM 400 404 { 405 /** List of audio devices (PDMAUDIODEVICE). */ 406 RTLISTANCHOR LstDevices; 401 407 /** Number of audio devices in the list. */ 402 uint16_t cDevices; 403 /** List of audio devices. */ 404 RTLISTANCHOR lstDevices; 408 uint32_t cDevices; 405 409 } PDMAUDIODEVICEENUM; 406 410 /** Pointer to an audio device enumeration result. */ 407 411 typedef PDMAUDIODEVICEENUM *PPDMAUDIODEVICEENUM; 412 /** Pointer to a const audio device enumeration result. */ 413 typedef PDMAUDIODEVICEENUM const *PCPDMAUDIODEVICEENUM; 408 414 409 415 /**
Note:
See TracChangeset
for help on using the changeset viewer.