- Timestamp:
- Mar 17, 2007 1:09:30 AM (18 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r814 r1551 1683 1683 * select the noaudio driver instead. 1684 1684 */ 1685 #ifndef __DARWIN__ /* coreaudio doesn't supply these. */ 1685 1686 if (!pData->ac97.voice_pi) 1686 1687 LogRel(("AC97: WARNING: Unable to open PCM IN!\n")); 1688 if (!pData->ac97.voice_mc) 1689 LogRel(("AC97: WARNING: Unable to open PCM MC!\n")); 1690 #endif 1687 1691 if (!pData->ac97.voice_po) 1688 1692 LogRel(("AC97: WARNING: Unable to open PCM OUT!\n")); 1689 if (!pData->ac97.voice_mc) 1690 LogRel(("AC97: WARNING: Unable to open PCM MC!\n")); 1691 1692 /** @todo r=bird: add a devhlp for this of course! */ 1693 1694 #ifdef __DARWIN__ /* coreaudio doesn't supply all, only bitch if we don't get anything. */ 1695 if (!pData->ac97.voice_pi && !pData->ac97.voice_po && !pData->ac97.voice_mc) 1696 #else 1693 1697 if (!pData->ac97.voice_pi || !pData->ac97.voice_po || !pData->ac97.voice_mc) 1698 #endif 1694 1699 VMSetRuntimeError(PDMDevHlpGetVM(pDevIns), false, 1695 1700 "HostAudioNotResponding", -
trunk/src/VBox/Devices/Audio/audio.c
r1071 r1551 68 68 &alsa_audio_driver, 69 69 #endif 70 #endif 71 #ifdef __DARWIN__ 72 &coreaudio_audio_driver, 70 73 #endif 71 74 #ifdef __WIN__ -
trunk/src/VBox/Devices/Makefile
r1488 r1551 98 98 VBoxDD_LIBS.os2 = \ 99 99 $(PATH_BIN)/VBoxDD2.dll 100 VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib 100 VBoxDD_LDFLAGS.darwin = -install_name @executable_path/VBoxDD.dylib -framework CoreAudio 101 101 VBoxDD_LDFLAGS.linux = -Wl,--no-undefined 102 102 VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined … … 353 353 Drivers_SOURCES := $(filter-out \ 354 354 Storage/DrvHost% \ 355 , $(Drivers_SOURCES)) 355 , $(Drivers_SOURCES)) \ 356 Audio/coreaudio.c 356 357 Drivers_SOURCES.darwin = 357 358 endif # darwin … … 408 409 409 410 ifdef VBOX_WITH_ISCSI 410 Drivers_SOURCES+= \411 Drivers_SOURCES += \ 411 412 Storage/DrvISCSI.cpp \ 412 413 Storage/DrvISCSITransportTCP.cpp 413 Drivers_DEFS+= VBOX_WITH_ISCSI414 Drivers_DEFS += VBOX_WITH_ISCSI 414 415 endif # VBOX_WITH_ISCSI 415 416 416 417 ifdef VBOX_WITH_ALSA 417 Drivers_DEFS+= VBOX_WITH_ALSA418 Drivers_SOURCES.linux+= \418 Drivers_DEFS.linux += VBOX_WITH_ALSA 419 Drivers_SOURCES.linux+= \ 419 420 Audio/alsaaudio.c 420 VBoxDD_LIBS.linux+= asound421 VBoxDD_LIBS.linux += asound 421 422 endif 422 423 423 424 ifdef VBOX_WITH_USB 424 Drivers_DEFS+= VBOX_WITH_USB IN_USB_R3425 Drivers_SOURCES+= \425 Drivers_DEFS += VBOX_WITH_USB IN_USB_R3 426 Drivers_SOURCES += \ 426 427 USB/DrvVUSBRootHub.cpp \ 427 428 USB/VUSBDevice.cpp \ 428 429 USB/VUSBUrb.cpp 429 ifdef VBOX_WITH_VRDP430 Drivers_SOURCES+= \430 ifdef VBOX_WITH_VRDP 431 Drivers_SOURCES += \ 431 432 USB/vrdp/USBProxyDevice-vrdp.cpp 432 endif433 434 Drivers_DEFS.linux+= VUSB_HAVE_USBPROXY_DEVICE435 ifdef VBOX_WITHOUT_LINUX_COMPILER_H436 Drivers_DEFS+= VBOX_WITHOUT_LINUX_COMPILER_H437 endif438 Drivers_SOURCES.linux+= \433 endif 434 435 Drivers_DEFS.linux += VUSB_HAVE_USBPROXY_DEVICE 436 ifdef VBOX_WITHOUT_LINUX_COMPILER_H 437 Drivers_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H 438 endif 439 Drivers_SOURCES.linux+= \ 439 440 USB/USBProxyDevice.cpp \ 440 441 USB/linux/USBProxyDevice-linux.cpp 441 442 442 Drivers_DEFS.l4+= VUSB_HAVE_USBPROXY_DEVICE443 Drivers_SOURCES.l4+= \443 Drivers_DEFS.l4 += VUSB_HAVE_USBPROXY_DEVICE 444 Drivers_SOURCES.l4 += \ 444 445 USB/USBProxyDevice.cpp \ 445 446 USB/linux/USBProxyDevice-linux.cpp 446 447 447 Drivers_DEFS.win+= VUSB_HAVE_USBPROXY_DEVICE448 Drivers_SOURCES.win+= \448 Drivers_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE 449 Drivers_SOURCES.win += \ 449 450 USB/USBProxyDevice.cpp \ 450 451 USB/win32/USBProxyDevice-win32.cpp \ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r1475 r1551 222 222 #else 223 223 bool fWin = false; 224 #endif 225 #ifdef __DARWIN__ 226 bool fDarwin = true; 227 #else 228 bool fDarwin = false; 224 229 #endif 225 230 #ifdef VBOX_VRDP … … 315 320 } 316 321 RTPrintf(" [-audio none|null"); 322 if (fWin) 323 { 324 RTPrintf( "|winmm|dsound"); 325 } 317 326 if (fLinux) 318 327 { … … 323 332 ); 324 333 } 325 if (f Win)326 { 327 RTPrintf( "| winmm|dsound");334 if (fDarwin) 335 { 336 RTPrintf( "|coreaudio"); 328 337 } 329 338 RTPrintf( "]\n"); … … 1000 1009 case AudioDriverType_OSSAudioDriver: psz = "OSS"; break; 1001 1010 case AudioDriverType_ALSAAudioDriver: psz = "ALSA"; break; 1011 case AudioDriverType_CoreAudioDriver: psz = "CoreAudio"; break; 1002 1012 default: ; break; 1003 1013 } … … 3590 3600 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3591 3601 } 3602 #ifdef __WIN__ 3603 else if (strcmp(audio, "winmm") == 0) 3604 { 3605 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_WINMMAudioDriver)); 3606 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3607 } 3608 else if (strcmp(audio, "dsound") == 0) 3609 { 3610 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_DSOUNDAudioDriver)); 3611 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3612 } 3613 #endif /* __WIN__ */ 3592 3614 #ifdef __LINUX__ 3593 3615 else if (strcmp(audio, "oss") == 0) … … 3596 3618 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3597 3619 } 3598 # ifdef VBOX_WITH_ALSA3620 # ifdef VBOX_WITH_ALSA 3599 3621 else if (strcmp(audio, "alsa") == 0) 3600 3622 { … … 3602 3624 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3603 3625 } 3604 #endif 3605 #else /* !__LINUX__ */ 3606 else if (strcmp(audio, "winmm") == 0) 3607 { 3608 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_WINMMAudioDriver)); 3626 # endif 3627 #endif /* !__LINUX__ */ 3628 #ifdef __DARWIN__ 3629 else if (strcmp(audio, "coreaudio") == 0) 3630 { 3631 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_CoreAudioDriver)); 3609 3632 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3610 3633 } 3611 else if (strcmp(audio, "dsound") == 0) 3612 { 3613 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_DSOUNDAudioDriver)); 3614 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 3615 } 3616 #endif /* !__LINUX__ */ 3634 #endif /* !__DARWIN__ */ 3617 3635 else 3618 3636 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r1469 r1551 1540 1540 audioDriverTypes [CEnums::DSOUNDAudioDriver] = 1541 1541 tr ("Windows DirectSound", "AudioDriverType"); 1542 audioDriverTypes [CEnums::CoreAudioDriver] = 1543 tr ("CoreAudio", "AudioDriverType"); 1542 1544 1543 1545 networkAttachmentTypes [CEnums::NoNetworkAttachment] = -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r1455 r1551 708 708 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::WINMMAudioDriver)); 709 709 #endif 710 #elif defined Q_ WS_X11710 #elif defined Q_OS_LINUX 711 711 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::OSSAudioDriver)); 712 712 #ifdef VBOX_WITH_ALSA 713 713 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::ALSAAudioDriver)); 714 714 #endif 715 #elif defined Q_OS_MACX 716 cbAudioDriver->insertItem (vboxGlobal().toString (CEnums::CoreAudioDriver)); 715 717 #endif 716 718 -
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r1071 r1551 218 218 { 219 219 case AudioDriverType_NullAudioDriver: 220 #ifdef __WIN__ 221 #ifdef VBOX_WITH_WINMM 222 case AudioDriverType_WINMMAudioDriver: 223 #endif 224 case AudioDriverType_DSOUNDAudioDriver: 225 #endif /* __WIN__ */ 226 #ifdef __LINUX__ 227 case AudioDriverType_OSSAudioDriver: 228 #ifdef VBOX_WITH_ALSA 229 case AudioDriverType_ALSAAudioDriver: 230 #endif 231 #endif /* __LINUX__ */ 232 #ifdef __DARWIN__ 233 case AudioDriverType_CoreAudioDriver: 234 #endif 220 235 { 221 236 mData.backup(); … … 224 239 } 225 240 226 #ifdef __WIN__227 #ifdef VBOX_WITH_WINMM228 case AudioDriverType_WINMMAudioDriver:229 {230 mData.backup();231 mData->mAudioDriver = audioDriver;232 break;233 }234 #endif235 case AudioDriverType_DSOUNDAudioDriver:236 {237 mData.backup();238 mData->mAudioDriver = audioDriver;239 break;240 }241 #endif /* __WIN__ */242 243 #ifdef __LINUX__244 case AudioDriverType_OSSAudioDriver:245 {246 mData.backup();247 mData->mAudioDriver = audioDriver;248 break;249 }250 #ifdef VBOX_WITH_ALSA251 case AudioDriverType_ALSAAudioDriver:252 {253 mData.backup();254 mData->mAudioDriver = audioDriver;255 break;256 }257 #endif258 #endif /* __LINUX__ */259 241 default: 260 242 { -
trunk/src/VBox/Main/ConsoleImpl.cpp
r1397 r1551 5321 5321 break; 5322 5322 } 5323 # ifdef VBOX_WITH_ALSA5323 # ifdef VBOX_WITH_ALSA 5324 5324 case AudioDriverType_ALSAAudioDriver: 5325 5325 { … … 5327 5327 break; 5328 5328 } 5329 # endif5329 # endif 5330 5330 #endif /* __LINUX__ */ 5331 #ifdef __DARWIN__ 5332 case AudioDriverType_CoreAudioDriver: 5333 { 5334 rc = CFGMR3InsertString(pCfg, "AudioDriver", "coreaudio"); RC_CHECK(); 5335 break; 5336 } 5337 #endif 5331 5338 } 5332 5339 } -
trunk/src/VBox/Main/MachineImpl.cpp
r1490 r1551 3949 3949 #endif 3950 3950 #endif // __LINUX__ 3951 #ifdef __DARWIN__ 3952 else if (driver == L"coreaudio") 3953 audioDriver = AudioDriverType_CoreAudioDriver; 3954 #endif 3951 3955 else 3952 3956 AssertMsgFailed (("Invalid driver: %ls\n", driver.raw())); … … 5727 5731 } 5728 5732 #endif /* __WIN__ */ 5733 #ifdef __LINUX__ 5729 5734 case AudioDriverType_ALSAAudioDriver: 5730 5735 #ifdef VBOX_WITH_ALSA … … 5734 5739 } 5735 5740 #endif 5736 #ifdef __LINUX__5737 5741 case AudioDriverType_OSSAudioDriver: 5738 5742 { … … 5741 5745 } 5742 5746 #endif /* __LINUX__ */ 5747 #ifdef __DARWIN__ 5748 case AudioDriverType_CoreAudioDriver: 5749 { 5750 CFGLDRSetString (adapterNode, "driver", "coreaudio"); 5751 break; 5752 } 5753 #endif 5743 5754 default: 5744 5755 ComAssertMsgFailedBreak (("Wrong audio driver type! driver = %d\n", -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r1471 r1551 6909 6909 <const name="ALSAAudioDriver" value="3"/> 6910 6910 <const name="DSOUNDAudioDriver" value="4"/> 6911 <const name="CoreAudioDriver" value="5"/> 6911 6912 </enum> 6912 6913 -
trunk/src/VBox/Main/xml/VirtualBox-settings-macosx.xsd
r632 r1551 96 96 <xsd:restriction base="xsd:token"> 97 97 <xsd:enumeration value="null"/> 98 <xsd:enumeration value="coreaudio"/> 98 99 </xsd:restriction> 99 100 </xsd:simpleType>
Note:
See TracChangeset
for help on using the changeset viewer.