VirtualBox

Ignore:
Timestamp:
Jan 13, 2010 11:09:52 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56596
Message:

FreeBSD: Add support for PulseAudio. Contributed by Noriyoshi Kawano and Bernhard Froehlich (thank you)

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r25755 r25819  
    6767    bool fSolaris = false;
    6868#endif
     69#ifdef RT_OS_FREEBSD
     70    bool fFreeBSD = true;
     71#else
     72    bool fFreeBSD = false;
     73#endif
    6974#ifdef RT_OS_DARWIN
    7075    bool fDarwin = true;
     
    8893        fWin = true;
    8994        fSolaris = true;
     95        fFreeBSD = true;
    9096        fDarwin = true;
    9197        fVRDP = true;
     
    236242                                             "|alsa"
    237243#endif
     244#ifdef VBOX_WITH_PULSE
     245                                             "|pulse"
     246#endif
     247                                             );
     248        }
     249        if (fFreeBSD)
     250        {
     251            RTPrintf(                        "|oss"
    238252#ifdef VBOX_WITH_PULSE
    239253                                             "|pulse"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r25672 r25819  
    13461346                }
    13471347#endif /* !RT_OS_SOLARIS */
     1348#ifdef RT_OS_FREEBSD
     1349                else if (!strcmp(ValueUnion.psz, "oss"))
     1350                {
     1351                    CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS));
     1352                    CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true));
     1353                }
     1354# ifdef VBOX_WITH_PULSE
     1355                else if (!strcmp(ValueUnion.psz, "pulse"))
     1356                {
     1357                    CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Pulse));
     1358                    CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true));
     1359                }
     1360# endif
     1361#endif /* !RT_OS_FREEBSD */
    13481362#ifdef RT_OS_DARWIN
    13491363                else if (!strcmp(ValueUnion.psz, "coreaudio"))
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