VirtualBox

Changeset 19058 in vbox


Ignore:
Timestamp:
Apr 21, 2009 11:03:32 AM (16 years ago)
Author:
vboxsync
Message:

AudioAdapterImpl.cpp: There might be more OSS users, so join them up.

File:
1 edited

Legend:

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

    r19002 r19058  
    242242#endif
    243243#ifdef RT_OS_LINUX
    244             case AudioDriverType_OSS:
    245244# ifdef VBOX_WITH_ALSA
    246245            case AudioDriverType_ALSA:
     
    250249# endif
    251250#endif /* RT_OS_LINUX */
     251#if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD)
     252            case AudioDriverType_OSS:
     253#endif
    252254#ifdef RT_OS_DARWIN
    253255            case AudioDriverType_CoreAudio:
     
    255257#ifdef RT_OS_OS2
    256258            case AudioDriverType_MMPM:
    257 #endif
    258 #ifdef RT_OS_FREEBSD
    259             case AudioDriverType_OSS:
    260259#endif
    261260            {
     
    367366    mAudioDriver = AudioDriverType_CoreAudio;
    368367#elif defined (RT_OS_OS2)
    369     mAudioDriver = AudioDriverType_MMP;;
     368    mAudioDriver = AudioDriverType_MMP;
     369#elif defined (RT_OS_FREEBSD)
     370    mAudioDriver = AudioDriverType_OSS;
    370371#else
    371372    mAudioDriver = AudioDriverType_Null;
     
    436437#endif // RT_OS_SOLARIS
    437438#ifdef RT_OS_LINUX
    438     else if (strcmp (driver, "OSS") == 0)
    439         mData->mAudioDriver = AudioDriverType_OSS;
    440439    else if (strcmp (driver, "ALSA") == 0)
    441440# ifdef VBOX_WITH_ALSA
     
    453452# endif
    454453#endif // RT_OS_LINUX
     454#if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD)
     455    else if (strcmp (driver, "OSS") == 0)
     456        mData->mAudioDriver = AudioDriverType_OSS;
     457#endif // RT_OS_LINUX || RT_OS_FREEBSD
    455458#ifdef RT_OS_DARWIN
    456459    else if (strcmp (driver, "CoreAudio") == 0)
     
    461464        mData->mAudioDriver = AudioDriverType_MMPM;
    462465#endif
    463 #ifdef RT_OS_FREEBSD
    464     else if (strcmp (driver, "OSS") == 0)
    465         mData->mAudioDriver = AudioDriverType_OSS;
    466 # endif
    467466    else
    468467        AssertMsgFailed (("Invalid driver '%s'\n", driver));
     
    551550            }
    552551# endif
     552#endif /* RT_OS_LINUX */
     553#if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD)
    553554            case AudioDriverType_OSS:
    554555            {
     
    556557                break;
    557558            }
    558 #endif /* RT_OS_LINUX */
     559#endif /* RT_OS_LINUX || RT_OS_FREEBSD */
    559560#ifdef RT_OS_DARWIN
    560561            case AudioDriverType_CoreAudio:
     
    568569            {
    569570                driverStr = "MMPM";
    570                 break;
    571             }
    572 #endif
    573 #ifdef RT_OS_FREEBSD
    574             case AudioDriverType_OSS:
    575             {
    576                 driverStr = "OSS";
    577571                break;
    578572            }
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