VirtualBox

忽略:
時間撮記:
2014-3-4 下午07:21:18 (11 年 以前)
作者:
vboxsync
訊息:

src/VBox/Devices/Audio, src/VBox/Main/src-client, include/VBox/vmm:

src/VBox/Devices/Audio: part of restructuring of audio code. Devices files correspondin to Hda, AC97 and SB16 audio. The structure of files have been modifed as per PDM specs. The modified code is under #ifdef VBOX_WITH_PDM_AUDIO_DRIVER

src/VBox/Main/src-client: Driver for the VRDE that interacts with DrvAudio. Enhancement of the CFGM tree for audio.

Config.kmk : addition of one configuration parameter that will control whether new audio code is disabled or enabled. "VBOX_WITH_PDM_AUDIO_DRIVER"

pdmaudioifs.h: common header file between Device , Intermediate audio driver and Backends specific to audio.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r50585 r50686  
    25032503        attachStatusDriver(pInst, &mapSharedFolderLed, 0, 0, NULL, NULL, 0);
    25042504
     2505#ifndef VBOX_WITH_PDM_AUDIO_DRIVER
    25052506        /*
    25062507         * Audio Sniffer Device
     
    25162517        AudioSniffer *pAudioSniffer = mAudioSniffer;
    25172518        InsertConfigInteger(pCfg,  "Object", (uintptr_t)pAudioSniffer);
     2519#endif
    25182520
    25192521        /*
     
    25692571            /* the Audio driver */
    25702572            InsertConfigNode(pInst,    "LUN#0", &pLunL0);
    2571             InsertConfigString(pLunL0, "Driver",               "AUDIO");
     2573            InsertConfigString(pLunL0, "Driver", "AUDIO");
     2574
     2575#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     2576            InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1);
     2577            InsertConfigString(pLunL1, "Driver", "PulseAudio");
     2578#endif
     2579
    25722580            InsertConfigNode(pLunL0,   "Config", &pCfg);
    25732581
     
    25912599                case AudioDriverType_DirectSound:
    25922600                {
     2601#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     2602                    InsertConfigString(pCfg, "AudioDriver", "DSoundAudio");
     2603#else
    25932604                    InsertConfigString(pCfg, "AudioDriver", "dsound");
     2605#endif
    25942606                    break;
    25952607                }
     
    26062618                case AudioDriverType_ALSA:
    26072619                {
     2620#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     2621                    InsertConfigString(pCfg, "AudioDriver", "AlsaAudio");
     2622#else
    26082623                    InsertConfigString(pCfg, "AudioDriver", "alsa");
     2624#endif
    26092625                    break;
    26102626                }
     
    26132629                case AudioDriverType_Pulse:
    26142630                {
     2631#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     2632                    InsertConfigString(pCfg, "AudioDriver", "PulseAudio");
     2633#else
    26152634                    InsertConfigString(pCfg, "AudioDriver", "pulse");
     2635#endif
    26162636                    break;
    26172637                }
     
    26292649                case AudioDriverType_Pulse:
    26302650                {
     2651#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     2652                    InsertConfigString(pCfg, "AudioDriver", "PulseAudio");
     2653#else
    26312654                    InsertConfigString(pCfg, "AudioDriver", "pulse");
     2655#endif
    26322656                    break;
    26332657                }
     
    26442668            hrc = pMachine->COMGETTER(Name)(bstr.asOutParam());                             H();
    26452669            InsertConfigString(pCfg, "StreamName", bstr);
     2670#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
     2671            /* the Audio driver */
     2672            InsertConfigNode(pInst, "LUN#1", &pLunL0);
     2673            InsertConfigString(pLunL0, "Driver", "AUDIO");
     2674            InsertConfigNode(pLunL0, "AttachedDriver", &pLunL1);
     2675            InsertConfigString(pLunL1, "Driver", "AudioVRDE");
     2676            InsertConfigNode(pLunL0, "Config", &pCfg);
     2677            InsertConfigString(pCfg, "AudioDriver", "AudioVRDE");
     2678            InsertConfigString(pCfg, "StreamName", bstr);
     2679            InsertConfigNode(pLunL1, "Config", &pCfg);
     2680            InsertConfigInteger(pCfg,  "Object", (uintptr_t)mAudioVRDE);
     2681            InsertConfigInteger(pCfg,  "ObjectVRDPServer", (uintptr_t)mConsoleVRDPServer);
     2682
     2683#endif
    26462684        }
    26472685
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette