圖例:
- 未更動
- 新增
- 刪除
-
trunk
-
trunk/src/VBox
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r53407 r53442 2612 2612 InsertConfigInteger(pCfg, "Object", (uintptr_t)pAudioSniffer); 2613 2613 #endif 2614 2615 2614 /* 2616 * AC'97 ICH / SoundBlaster16 audio / Intel HD Audio 2615 * AC'97 ICH / SoundBlaster16 audio / Intel HD Audio. 2617 2616 */ 2618 2617 BOOL fAudioEnabled = FALSE; … … 2630 2629 case AudioControllerType_AC97: 2631 2630 { 2632 /* default: ICH AC97*/2631 /* Default: ICH AC97. */ 2633 2632 InsertConfigNode(pDevices, "ichac97", &pDev); 2634 2633 InsertConfigNode(pDev, "0", &pInst); … … 2640 2639 case AudioControllerType_SB16: 2641 2640 { 2642 /* legacy SoundBlaster16*/2641 /* Legacy SoundBlaster16. */ 2643 2642 InsertConfigNode(pDevices, "sb16", &pDev); 2644 2643 InsertConfigNode(pDev, "0", &pInst); … … 2654 2653 case AudioControllerType_HDA: 2655 2654 { 2656 /* Intel HD Audio */2655 /* Intel HD Audio. */ 2657 2656 InsertConfigNode(pDevices, "hda", &pDev); 2658 2657 InsertConfigNode(pDev, "0", &pInst); … … 2663 2662 } 2664 2663 2665 /* the Audio driver*/2664 /* The audio driver. */ 2666 2665 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2667 2666 InsertConfigString(pLunL0, "Driver", "AUDIO"); 2667 InsertConfigNode(pLunL0, "Config", &pCfg); 2668 2668 2669 2669 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2670 PCFGMNODE pLunL1; 2670 2671 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); 2671 InsertConfig String(pLunL1, "Driver", "PulseAudio");2672 InsertConfigNode(pLunL1, "Config", &pCfg); 2672 2673 #endif 2673 2674 InsertConfigNode(pLunL0, "Config", &pCfg);2675 2676 2674 AudioDriverType_T audioDriver; 2677 2675 hrc = audioAdapter->COMGETTER(AudioDriver)(&audioDriver); H(); … … 2680 2678 case AudioDriverType_Null: 2681 2679 { 2680 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2681 InsertConfigString(pLunL1, "Driver", "NullAudio"); 2682 #else 2682 2683 InsertConfigString(pCfg, "AudioDriver", "null"); 2684 #endif 2683 2685 break; 2684 2686 } 2685 2687 #ifdef RT_OS_WINDOWS 2686 # ifdef VBOX_WITH_WINMM2688 # ifdef VBOX_WITH_WINMM 2687 2689 case AudioDriverType_WinMM: 2688 2690 { 2691 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2692 #error "Port WinMM audio backend!" /** @todo Still needed? */ 2693 #else 2689 2694 InsertConfigString(pCfg, "AudioDriver", "winmm"); 2695 #endif 2690 2696 break; 2691 2697 } 2692 # endif2698 # endif 2693 2699 case AudioDriverType_DirectSound: 2694 2700 { 2695 2701 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2696 InsertConfigString(p Cfg, "AudioDriver", "DSoundAudio");2702 InsertConfigString(pLunL1, "Driver", "DSoundAudio"); 2697 2703 #else 2698 2704 InsertConfigString(pCfg, "AudioDriver", "dsound"); … … 2704 2710 case AudioDriverType_SolAudio: 2705 2711 { 2712 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2713 #error "Port Solaris audio backend!" /** @todo Port Solaris driver. */ 2714 #else 2706 2715 InsertConfigString(pCfg, "AudioDriver", "solaudio"); 2707 break;2708 }2709 #endif2710 #ifdef RT_OS_LINUX2711 # ifdef VBOX_WITH_ALSA2712 case AudioDriverType_ALSA:2713 {2714 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER2715 InsertConfigString(pCfg, "AudioDriver", "AlsaAudio");2716 #else2717 InsertConfigString(pCfg, "AudioDriver", "alsa");2718 2716 #endif 2719 2717 break; 2720 2718 } 2719 #endif 2720 #ifdef VBOX_WITH_ALSA 2721 case AudioDriverType_ALSA: 2722 { 2723 # ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2724 InsertConfigString(pLunL1, "Driver", "AlsaAudio"); 2725 # else 2726 InsertConfigString(pCfg, "AudioDriver", "alsa"); 2721 2727 # endif 2722 # ifdef VBOX_WITH_PULSE 2728 break; 2729 } 2730 #endif 2731 #ifdef VBOX_WITH_PULSE 2723 2732 case AudioDriverType_Pulse: 2724 2733 { 2725 # ifdef VBOX_WITH_PDM_AUDIO_DRIVER2726 InsertConfigString(p Cfg, "AudioDriver", "PulseAudio");2727 # else2734 # ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2735 InsertConfigString(pLunL1, "Driver", "PulseAudio"); 2736 # else 2728 2737 InsertConfigString(pCfg, "AudioDriver", "pulse"); 2738 # endif 2739 break; 2740 } 2729 2741 #endif 2730 break;2731 }2732 # endif2733 #endif /* RT_OS_LINUX */2734 2742 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 2735 2743 case AudioDriverType_OSS: 2736 2744 { 2737 InsertConfigString(pCfg, "AudioDriver", "oss"); 2745 # ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2746 #error "Port OSS audio backend!" /** @todo Port OSS driver. */ 2747 # else 2748 InsertConfigString(pCfg, "AudioDriver", "ossaudio"); 2749 # endif 2738 2750 break; 2739 2751 } 2740 #endif2741 #ifdef RT_OS_FREEBSD2742 # ifdef VBOX_WITH_PULSE2743 case AudioDriverType_Pulse:2744 {2745 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER2746 InsertConfigString(pCfg, "AudioDriver", "PulseAudio");2747 #else2748 InsertConfigString(pCfg, "AudioDriver", "pulse");2749 #endif2750 break;2751 }2752 # endif2753 2752 #endif 2754 2753 #ifdef RT_OS_DARWIN 2755 2754 case AudioDriverType_CoreAudio: 2756 2755 { 2756 # ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2757 InsertConfigString(pLunL1, "Driver", "CoreAudio"); 2758 # else 2757 2759 InsertConfigString(pCfg, "AudioDriver", "coreaudio"); 2760 # endif 2758 2761 break; 2759 2762 } 2760 2763 #endif 2761 2764 } 2765 2762 2766 hrc = pMachine->COMGETTER(Name)(bstr.asOutParam()); H(); 2763 InsertConfigString(pCfg, "StreamName", bstr); 2767 2764 2768 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 2765 /* the Audio driver */ 2766 InsertConfigNode(pInst, "LUN#1", &pLunL0); 2767 InsertConfigString(pLunL0, "Driver", "AUDIO"); 2768 InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1); 2769 /* 2770 * The VRDE audio backend driver. This one always is there 2771 * and therefore is hardcoded here. 2772 */ 2773 InsertConfigNode(pInst, "LUN#1", &pLunL1); 2774 InsertConfigString(pLunL1, "Driver", "AUDIO"); 2775 2776 InsertConfigNode(pLunL1, "AttachedDriver", &pLunL1); 2769 2777 InsertConfigString(pLunL1, "Driver", "AudioVRDE"); 2770 InsertConfigNode(pLunL0, "Config", &pCfg); 2778 2779 InsertConfigNode(pLunL1, "Config", &pCfg); 2771 2780 InsertConfigString(pCfg, "AudioDriver", "AudioVRDE"); 2772 2781 InsertConfigString(pCfg, "StreamName", bstr); 2773 InsertConfig Node(pLunL1, "Config", &pCfg);2774 InsertConfigInteger(pCfg, "Object", (uintptr_t)mAudioVRDE);2775 InsertConfigInteger(pCfg, "ObjectVRDPServer", (uintptr_t)mConsoleVRDPServer); 2776 2782 InsertConfigInteger(pCfg, "Object", (uintptr_t)mAudioVRDE); 2783 InsertConfigInteger(pCfg, "ObjectVRDPServer", (uintptr_t)mConsoleVRDPServer); 2784 2785 /** @todo Add audio video recording driver here. */ 2777 2786 #endif 2778 2787 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器