VirtualBox

Changeset 19002 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 17, 2009 8:04:12 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46100
Message:

Audio: Add support for FreeBSD

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/AudioAdapterImpl.cpp

    r17020 r19002  
    255255#ifdef RT_OS_OS2
    256256            case AudioDriverType_MMPM:
     257#endif
     258#ifdef RT_OS_FREEBSD
     259            case AudioDriverType_OSS:
    257260#endif
    258261            {
     
    458461        mData->mAudioDriver = AudioDriverType_MMPM;
    459462#endif
     463#ifdef RT_OS_FREEBSD
     464    else if (strcmp (driver, "OSS") == 0)
     465        mData->mAudioDriver = AudioDriverType_OSS;
     466# endif
    460467    else
    461468        AssertMsgFailed (("Invalid driver '%s'\n", driver));
     
    564571            }
    565572#endif
     573#ifdef RT_OS_FREEBSD
     574            case AudioDriverType_OSS:
     575            {
     576                driverStr = "OSS";
     577                break;
     578            }
     579#endif
    566580            default:
    567581                ComAssertMsgFailedRet (("Wrong audio driver type! driver = %d",
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r18829 r19002  
    22742274            }
    22752275#endif
     2276#ifdef RT_OS_FREEBSD
     2277            case AudioDriverType_OSS:
     2278            {
     2279                rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss");                RC_CHECK();
     2280                break;
     2281            }
     2282#endif
    22762283        }
    22772284        hrc = pMachine->COMGETTER(Name)(&str);                                      H();
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