Changeset 1551 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 17, 2007 1:09:30 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19642
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 {
Note:
See TracChangeset
for help on using the changeset viewer.