VirtualBox

Changeset 70544 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jan 11, 2018 4:20:27 PM (7 years ago)
Author:
vboxsync
Message:

Audio/Main: Also added the driver name to the AudioDriver base class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AudioDriver.h

    • Property svn:executable deleted
    r70538 r70544  
    2525
    2626/**
    27  * Audio driver configuration for audio drivers implemented 
    28  * in Main. 
     27 * Audio driver configuration for audio drivers implemented
     28 * in Main.
    2929 */
    3030struct AudioDriverCfg
    3131{
    32     AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, unsigned a_uLUN = 0)
     32    AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, unsigned a_uLUN = 0,
     33                   Utf8Str a_strName = "")
    3334        : strDev(a_strDev)
    3435        , uInst(a_uInst)
    35         , uLUN(a_uLUN) { }
     36        , uLUN(a_uLUN)
     37        , strName(a_strName) { }
    3638
    3739    AudioDriverCfg& operator=(AudioDriverCfg that)
    3840    {
    39         this->strDev = that.strDev;
    40         this->uInst  = that.uInst;
    41         this->uLUN   = that.uLUN;
     41        this->strDev  = that.strDev;
     42        this->uInst   = that.uInst;
     43        this->uLUN    = that.uLUN;
     44        this->strName = that.strName;
    4245
    4346        return *this;
     
    5154     *  Set the UINT8_MAX if not attached. */
    5255    unsigned             uLUN;
     56    /** The driver name. */
     57    Utf8Str              strName;
    5358};
    5459
     
    6974    AudioDriverCfg *GetConfig(void) { return &mCfg; }
    7075
    71     Console *GetParent(void) { return mpConsole; }   
     76    Console *GetParent(void) { return mpConsole; }
    7277
    7378    bool IsAttached(void) { return mfAttached; }
     
    8287
    8388    /**
    84      * Optional (virtual) function to give the derived audio driver 
    85      * class the ability to add more driver configuration entries when 
     89     * Optional (virtual) function to give the derived audio driver
     90     * class the ability to add more driver configuration entries when
    8691     * setting up.
    87      * 
    88      * @param pLunCfg           CFGM configuration node of the driver.   
     92     *
     93     * @param pLunCfg           CFGM configuration node of the driver.
    8994     */
    9095    virtual void configureDriver(PCFGMNODE pLunCfg) { RT_NOREF(pLunCfg); }
Note: See TracChangeset for help on using the changeset viewer.

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