VirtualBox

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


Ignore:
Timestamp:
Jan 19, 2018 12:20:33 PM (7 years ago)
Author:
vboxsync
Message:

Audio/Main: More code needed for attaching / detaching host backends at runtime.

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

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

    r70579 r70644  
    3131struct AudioDriverCfg
    3232{
    33     AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, Utf8Str a_strName = "")
     33    AudioDriverCfg(Utf8Str a_strDev = "", unsigned a_uInst = 0, unsigned a_uLUN = 0, Utf8Str a_strName = "")
    3434        : strDev(a_strDev)
    3535        , uInst(a_uInst)
     36        , uLUN(a_uLUN)
    3637        , strName(a_strName) { }
    3738
     
    4041        this->strDev  = that.strDev;
    4142        this->uInst   = that.uInst;
     43        this->uLUN    = that.uLUN;
    4244        this->strName = that.strName;
    4345
     
    4951    /** The device instance. */
    5052    unsigned             uInst;
     53    /** The LUN the driver is attached to.
     54     *  Set the UINT8_MAX if not attached. */
     55    unsigned             uLUN;
    5156    /** The driver name. */
    5257    Utf8Str              strName;
     
    8691    /**
    8792     * Optional (virtual) function to give the derived audio driver
    88      * class the ability to add more driver configuration entries when
    89      * setting up.
     93     * class the ability to add (or change) the driver configuration
     94     * entries when setting up.
    9095     *
    91      * @param pLunCfg           CFGM configuration node of the driver.
     96     * @return VBox status code.
     97     * @param  pLunCfg          CFGM configuration node of the driver.
    9298     */
    93     virtual void configureDriver(PCFGMNODE pLunCfg) { RT_NOREF(pLunCfg); }
    94 
    95     unsigned getFreeLUN(void);
     99    virtual int configureDriver(PCFGMNODE pLunCfg) { RT_NOREF(pLunCfg); return VINF_SUCCESS; }
    96100
    97101protected:
     
    103107    /** Whether the driver is attached or not. */
    104108    bool                 mfAttached;
    105     /** The LUN the driver is attached to.
    106      *  Set the UINT8_MAX if not attached. */
    107     unsigned             muLUN;
    108109};
    109110
  • trunk/src/VBox/Main/include/DrvAudioVRDE.h

    r70553 r70644  
    6262private:
    6363
    64     void configureDriver(PCFGMNODE pLunCfg);
     64    int configureDriver(PCFGMNODE pLunCfg);
    6565
    6666    /** Pointer to the associated VRDE audio driver. */
  • trunk/src/VBox/Main/include/DrvAudioVideoRec.h

    r70563 r70644  
    5050private:
    5151
    52     void configureDriver(PCFGMNODE pLunCfg);
     52    int configureDriver(PCFGMNODE pLunCfg);
    5353
    5454    /** Pointer to the associated video recording audio driver. */
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