VirtualBox

Changeset 1571 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 20, 2007 4:56:14 AM (18 years ago)
Author:
vboxsync
Message:

audio (darwin).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r1397 r1571  
    115115*   Internal Functions                                                         *
    116116*******************************************************************************/
    117 static DECLCALLBACK(int) cfgmR3CreateDefault(PVM pVM, void *pvUser);
     117static DECLCALLBACK(int) vboxbfeConfigConstructor(PVM pVM, void *pvUser);
    118118static DECLCALLBACK(void) vmstateChangeCallback(PVM pVM, VMSTATE enmState, VMSTATE enmOldState, void *pvUser);
    119119static DECLCALLBACK(void) setVMErrorCallback(PVM pVM, void *pvUser, int rc, RT_SRC_POS_DECL,
     
    939939     * Create empty VM.
    940940     */
    941     rc = VMR3Create(setVMErrorCallback, NULL, cfgmR3CreateDefault, NULL, &pVM);
     941    rc = VMR3Create(setVMErrorCallback, NULL, vboxbfeConfigConstructor, NULL, &pVM);
    942942    if (VBOX_FAILURE(rc))
    943943    {
     
    10541054
    10551055/**
    1056  * Creates the default configuration.
    1057  * This assumes an empty tree.
     1056 * Constructs the VMM configuration tree.
    10581057 *
    10591058 * @returns VBox status code.
    10601059 * @param   pVM     VM handle.
    10611060 */
    1062 static DECLCALLBACK(int) cfgmR3CreateDefault(PVM pVM, void *pvUser)
     1061static DECLCALLBACK(int) vboxbfeConfigConstructor(PVM pVM, void *pvUser)
    10631062{
    10641063    int rcAll = VINF_SUCCESS;
     
    10701069
    10711070    /*
    1072      * Create VM default values.
     1071     * Root values.
    10731072     */
    10741073    PCFGMNODE pRoot = CFGMR3GetRoot(pVM);
     
    15841583#ifdef __WIN__
    15851584        rc = CFGMR3InsertString(pCfg, "AudioDriver", "winmm");                      CHECK_RC();
    1586 #else /* !__WIN__ */
     1585#elif defined(__DARWIN__)
     1586        rc = CFGMR3InsertString(pCfg, "AudioDriver", "coreaudio");                  CHECK_RC();
     1587#elif defined(__LINUX__)
    15871588        rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss");                        CHECK_RC();
     1589#else /* portme */
     1590        rc = CFGMR3InsertString(pCfg, "AudioDriver", "none");                       CHECK_RC();
    15881591#endif /* !__WIN__ */
    15891592    }
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