VirtualBox

Ignore:
Timestamp:
May 26, 2015 4:39:58 PM (10 years ago)
Author:
vboxsync
Message:

PDM/Audio: Removed old audio architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r56035 r56085  
    5656#include "RemoteUSBDeviceImpl.h"
    5757#include "SharedFolderImpl.h"
    58 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
    5958#include "DrvAudioVRDE.h"
    60 #else
    61 #include "AudioSnifferInterface.h"
    62 #endif
    6359#include "Nvram.h"
    6460#ifdef VBOX_WITH_USB_CARDREADER
     
    373369    , mpVmm2UserMethods(NULL)
    374370    , m_pVMMDev(NULL)
    375 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
    376371    , mAudioVRDE(NULL)
    377 #else
    378     , mAudioSniffer(NULL)
    379 #endif
    380372    , mNvram(NULL)
    381373#ifdef VBOX_WITH_USB_CARDREADER
     
    557549            meAttachmentType[slot] = NetworkAttachmentType_Null;
    558550
    559 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
    560551        unconst(mAudioVRDE) = new AudioVRDE(this);
    561552        AssertReturn(mAudioVRDE, E_FAIL);
    562 #else
    563         unconst(mAudioSniffer) = new AudioSniffer(this);
    564         AssertReturn(mAudioSniffer, E_FAIL);
    565 #endif
     553
    566554        FirmwareType_T enmFirmwareType;
    567555        mMachine->COMGETTER(FirmwareType)(&enmFirmwareType);
     
    697685#endif
    698686
    699 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
    700687    if (mAudioVRDE)
    701688    {
     
    703690        unconst(mAudioVRDE) = NULL;
    704691    }
    705 #else
    706     if (mAudioSniffer)
    707     {
    708         delete mAudioSniffer;
    709         unconst(mAudioSniffer) = NULL;
    710     }
    711 #endif
    712692
    713693    // if the VM had a VMMDev with an HGCM thread, then remove that here
     
    14021382    if (fu32Intercepted & VRDE_CLIENT_INTERCEPT_AUDIO)
    14031383    {
    1404 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
    14051384        if (mAudioVRDE)
    14061385            mAudioVRDE->onVRDEControl(false /* fEnable */, 0 /* uFlags */);
    1407 #else
    1408         mcAudioRefs--;
    1409 
    1410         if (mcAudioRefs <= 0)
    1411         {
    1412             if (mAudioSniffer)
    1413             {
    1414                 PPDMIAUDIOSNIFFERPORT port = mAudioSniffer->getAudioSnifferPort();
    1415                 if (port)
    1416                     port->pfnSetup(port, false, false);
    1417             }
    1418         }
    1419 #endif
    14201386    }
    14211387
     
    14491415    LogFlowFunc(("u32ClientId=%RU32\n", u32ClientId));
    14501416
    1451 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
    14521417    if (mAudioVRDE)
    14531418        mAudioVRDE->onVRDEControl(true /* fEnable */, 0 /* uFlags */);
    1454 #else
    1455     ++mcAudioRefs;
    1456 
    1457     if (mcAudioRefs == 1)
    1458     {
    1459         if (mAudioSniffer)
    1460         {
    1461             PPDMIAUDIOSNIFFERPORT port = mAudioSniffer->getAudioSnifferPort();
    1462             if (port)
    1463                 port->pfnSetup(port, true, true);
    1464         }
    1465     }
    1466 #endif
    14671419
    14681420    LogFlowFuncLeave();
Note: See TracChangeset for help on using the changeset viewer.

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