VirtualBox

Changeset 88044 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Mar 9, 2021 1:18:37 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143175
Message:

Audio: More prep work to move the audio device enumeration code to PDM. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r88041 r88044  
    352352/**
    353353 * Audio device info (enumeration result).
    354  * @sa PDMAUDIODEVICEENUM, PDMIHOSTAUDIO::pfnGetDevices
     354 * @sa PDMAUDIOHOSTENUM, PDMIHOSTAUDIO::pfnGetDevices
    355355 */
    356356typedef struct PDMAUDIODEVICE
    357357{
    358     /** List entry (like PDMAUDIODEVICEENUM::LstDevices). */
     358    /** List entry (like PDMAUDIOHOSTENUM::LstDevices). */
    359359    RTLISTNODE          Node;
    360360    /** Magic value (PDMAUDIODEVICE_MAGIC). */
     
    404404
    405405/**
    406  * An audio device enumeration result.
     406 * A host audio device enumeration result.
    407407 *
    408408 * @sa PDMIHOSTAUDIO::pfnGetDevices
    409409 */
    410 typedef struct PDMAUDIODEVICEENUM
    411 {
     410typedef struct PDMAUDIOHOSTENUM
     411{
     412    /** Magic value (PDMAUDIOHOSTENUM_MAGIC). */
     413    uint32_t        uMagic;
     414    /** Number of audio devices in the list. */
     415    uint32_t        cDevices;
    412416    /** List of audio devices (PDMAUDIODEVICE). */
    413417    RTLISTANCHOR    LstDevices;
    414     /** Number of audio devices in the list. */
    415     uint32_t        cDevices;
    416 } PDMAUDIODEVICEENUM;
     418} PDMAUDIOHOSTENUM;
    417419/** Pointer to an audio device enumeration result. */
    418 typedef PDMAUDIODEVICEENUM *PPDMAUDIODEVICEENUM;
     420typedef PDMAUDIOHOSTENUM *PPDMAUDIOHOSTENUM;
    419421/** Pointer to a const audio device enumeration result. */
    420 typedef PDMAUDIODEVICEENUM const *PCPDMAUDIODEVICEENUM;
     422typedef PDMAUDIOHOSTENUM const *PCPDMAUDIOHOSTENUM;
     423
     424/** Magic for the host audio device enumeration. (Herbert Jeffrey "Herbie" Hancock) */
     425#define PDMAUDIOHOSTENUM_MAGIC      UINT32_C(0x19400412)
     426
    421427
    422428/**
     
    16521658     * @param   pDeviceEnum         Where to return the enumerated audio devices.
    16531659     */
    1654     DECLR3CALLBACKMEMBER(int, pfnGetDevices, (PPDMIHOSTAUDIO pInterface, PPDMAUDIODEVICEENUM pDeviceEnum));
     1660    DECLR3CALLBACKMEMBER(int, pfnGetDevices, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOHOSTENUM pDeviceEnum));
    16551661
    16561662    /**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette