- Timestamp:
- Jun 12, 2009 11:31:37 AM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/audio.c
r20096 r20501 63 63 64 64 static struct audio_driver *drvtab[] = { 65 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 65 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 66 66 &oss_audio_driver, 67 67 #endif -
trunk/src/VBox/Devices/Audio/ossaudio.c
r3785 r20501 275 275 } 276 276 277 /* Obsolete on Solaris (using O_NONBLOCK is sufficient) */ 278 #if !(defined(VBOX) && defined(RT_OS_SOLARIS)) 277 279 if (ioctl (fd, SNDCTL_DSP_NONBLOCK)) { 278 # ifndef VBOX280 # ifndef VBOX 279 281 oss_logerr2 (errno, typ, "Failed to set non-blocking mode\n"); 280 # else282 # else 281 283 LogRel(("OSS: Failed to set non-blocking mode (%s)\n", strerror(errno))); 282 # endif284 # endif 283 285 goto err; 284 286 } 287 #endif 285 288 286 289 mmmmssss = (req->nfrags << 16) | lsbindex (req->fragsize); -
trunk/src/VBox/Devices/Makefile.kmk
r20485 r20501 836 836 Storage/DrvHostDVD.cpp \ 837 837 Serial/DrvHostSerial.cpp 838 ifdef VBOX_WITH_SOLARIS_OSS 839 Drivers_SOURCES += Audio/ossaudio.c 840 Drivers_DEFS += VBOX_WITH_SOLARIS_OSS 841 endif 838 842 ifdef VBOX_WITH_CROSSBOW 839 843 Drivers_SOURCES += Network/solaris/vbox-libdlpi.cpp -
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r19817 r20501 1950 1950 #elif defined(RT_OS_LINUX) 1951 1951 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); UPDATE_RC(); 1952 #elif defined(RT_OS_SOLARIS) 1953 # ifdef VBOX_WITH_SOLARIS_OSS 1954 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); UPDATE_RC(); 1955 # else 1956 rc = CFGMR3InsertString(pCfg, "AudioDriver", "solaudio"); UPDATE_RC(); 1957 # endif 1952 1958 #elif defined(RT_OS_L4) 1953 1959 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); UPDATE_RC(); -
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r20318 r20501 39 39 $(if $(VBOX_WITH_HEADLESS), VBOX_WITH_HEADLESS) \ 40 40 $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \ 41 $(if $(VBOX_WITH_SOLARIS_OSS), VBOX_WITH_SOLARIS_OSS) \ 41 42 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \ 42 43 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r20313 r20501 199 199 if (fSolaris) 200 200 { 201 RTPrintf( "|solaudio"); 201 RTPrintf( "|solaudio" 202 #ifdef VBOX_WITH_SOLARIS_OSS 203 "|oss" 204 #endif 205 ); 202 206 } 203 207 if (fLinux) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r20474 r20501 1442 1442 } 1443 1443 1444 # ifdef VBOX_WITH_SOLARIS_OSS 1445 else if (!strcmp(audio, "oss")) 1446 { 1447 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS)); 1448 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 1449 } 1450 # endif 1451 1444 1452 #endif /* !RT_OS_SOLARIS */ 1445 1453 #ifdef RT_OS_DARWIN -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r20243 r20501 177 177 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA) \ 178 178 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \ 179 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS) \ 179 180 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \ 180 181 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsAudio.cpp
r19060 r20501 84 84 #if defined Q_OS_SOLARIS 85 85 mCbAudioDriver->addItem (vboxGlobal().toString (KAudioDriverType_SolAudio)); 86 # if defined VBOX_WITH_SOLARIS_OSS 87 mCbAudioDriver->addItem (vboxGlobal().toString (KAudioDriverType_OSS)); 88 #endif 86 89 #endif 87 90 #if defined Q_OS_LINUX || defined Q_OS_FREEBSD -
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r20262 r20501 259 259 # endif 260 260 #endif /* RT_OS_LINUX */ 261 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 261 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 262 262 case AudioDriverType_OSS: 263 263 #endif … … 431 431 # endif 432 432 #endif // RT_OS_LINUX 433 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 433 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 434 434 else if (strcmp (driver, "OSS") == 0) 435 435 mData->mAudioDriver = AudioDriverType_OSS; … … 530 530 # endif 531 531 #endif /* RT_OS_LINUX */ 532 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 532 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 533 533 case AudioDriverType_OSS: 534 534 { -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r20215 r20501 2279 2279 # endif 2280 2280 #endif /* RT_OS_LINUX */ 2281 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 2281 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 2282 2282 case AudioDriverType_OSS: 2283 2283 { -
trunk/src/VBox/Main/Makefile.kmk
r20495 r20501 213 213 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \ 214 214 $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \ 215 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \ 215 216 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \ 216 217 $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \ … … 546 547 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \ 547 548 $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \ 549 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \ 548 550 $(if $(VBOX_WITH_CROSSBOW),VBOX_WITH_CROSSBOW,) \ 549 551 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \ -
trunk/src/VBox/Main/xml/VirtualBox-settings-solaris.xsd
r18265 r20501 63 63 <xsd:enumeration value="Null"/> 64 64 <xsd:enumeration value="SolAudio"/> 65 <xsd:enumeration value="OSS"/> 65 66 </xsd:restriction> 66 67 </xsd:simpleType>
Note:
See TracChangeset
for help on using the changeset viewer.