Changeset 19058 in vbox
- Timestamp:
- Apr 21, 2009 11:03:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r19002 r19058 242 242 #endif 243 243 #ifdef RT_OS_LINUX 244 case AudioDriverType_OSS:245 244 # ifdef VBOX_WITH_ALSA 246 245 case AudioDriverType_ALSA: … … 250 249 # endif 251 250 #endif /* RT_OS_LINUX */ 251 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 252 case AudioDriverType_OSS: 253 #endif 252 254 #ifdef RT_OS_DARWIN 253 255 case AudioDriverType_CoreAudio: … … 255 257 #ifdef RT_OS_OS2 256 258 case AudioDriverType_MMPM: 257 #endif258 #ifdef RT_OS_FREEBSD259 case AudioDriverType_OSS:260 259 #endif 261 260 { … … 367 366 mAudioDriver = AudioDriverType_CoreAudio; 368 367 #elif defined (RT_OS_OS2) 369 mAudioDriver = AudioDriverType_MMP;; 368 mAudioDriver = AudioDriverType_MMP; 369 #elif defined (RT_OS_FREEBSD) 370 mAudioDriver = AudioDriverType_OSS; 370 371 #else 371 372 mAudioDriver = AudioDriverType_Null; … … 436 437 #endif // RT_OS_SOLARIS 437 438 #ifdef RT_OS_LINUX 438 else if (strcmp (driver, "OSS") == 0)439 mData->mAudioDriver = AudioDriverType_OSS;440 439 else if (strcmp (driver, "ALSA") == 0) 441 440 # ifdef VBOX_WITH_ALSA … … 453 452 # endif 454 453 #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 455 458 #ifdef RT_OS_DARWIN 456 459 else if (strcmp (driver, "CoreAudio") == 0) … … 461 464 mData->mAudioDriver = AudioDriverType_MMPM; 462 465 #endif 463 #ifdef RT_OS_FREEBSD464 else if (strcmp (driver, "OSS") == 0)465 mData->mAudioDriver = AudioDriverType_OSS;466 # endif467 466 else 468 467 AssertMsgFailed (("Invalid driver '%s'\n", driver)); … … 551 550 } 552 551 # endif 552 #endif /* RT_OS_LINUX */ 553 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) 553 554 case AudioDriverType_OSS: 554 555 { … … 556 557 break; 557 558 } 558 #endif /* RT_OS_LINUX */559 #endif /* RT_OS_LINUX || RT_OS_FREEBSD */ 559 560 #ifdef RT_OS_DARWIN 560 561 case AudioDriverType_CoreAudio: … … 568 569 { 569 570 driverStr = "MMPM"; 570 break;571 }572 #endif573 #ifdef RT_OS_FREEBSD574 case AudioDriverType_OSS:575 {576 driverStr = "OSS";577 571 break; 578 572 }
Note:
See TracChangeset
for help on using the changeset viewer.