Changeset 56085 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
- Timestamp:
- May 26, 2015 4:39:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r56035 r56085 56 56 #include "RemoteUSBDeviceImpl.h" 57 57 #include "SharedFolderImpl.h" 58 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER59 58 #include "DrvAudioVRDE.h" 60 #else61 #include "AudioSnifferInterface.h"62 #endif63 59 #include "Nvram.h" 64 60 #ifdef VBOX_WITH_USB_CARDREADER … … 373 369 , mpVmm2UserMethods(NULL) 374 370 , m_pVMMDev(NULL) 375 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER376 371 , mAudioVRDE(NULL) 377 #else378 , mAudioSniffer(NULL)379 #endif380 372 , mNvram(NULL) 381 373 #ifdef VBOX_WITH_USB_CARDREADER … … 557 549 meAttachmentType[slot] = NetworkAttachmentType_Null; 558 550 559 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER560 551 unconst(mAudioVRDE) = new AudioVRDE(this); 561 552 AssertReturn(mAudioVRDE, E_FAIL); 562 #else 563 unconst(mAudioSniffer) = new AudioSniffer(this); 564 AssertReturn(mAudioSniffer, E_FAIL); 565 #endif 553 566 554 FirmwareType_T enmFirmwareType; 567 555 mMachine->COMGETTER(FirmwareType)(&enmFirmwareType); … … 697 685 #endif 698 686 699 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER700 687 if (mAudioVRDE) 701 688 { … … 703 690 unconst(mAudioVRDE) = NULL; 704 691 } 705 #else706 if (mAudioSniffer)707 {708 delete mAudioSniffer;709 unconst(mAudioSniffer) = NULL;710 }711 #endif712 692 713 693 // if the VM had a VMMDev with an HGCM thread, then remove that here … … 1402 1382 if (fu32Intercepted & VRDE_CLIENT_INTERCEPT_AUDIO) 1403 1383 { 1404 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER1405 1384 if (mAudioVRDE) 1406 1385 mAudioVRDE->onVRDEControl(false /* fEnable */, 0 /* uFlags */); 1407 #else1408 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 #endif1420 1386 } 1421 1387 … … 1449 1415 LogFlowFunc(("u32ClientId=%RU32\n", u32ClientId)); 1450 1416 1451 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER1452 1417 if (mAudioVRDE) 1453 1418 mAudioVRDE->onVRDEControl(true /* fEnable */, 0 /* uFlags */); 1454 #else1455 ++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 #endif1467 1419 1468 1420 LogFlowFuncLeave();
Note:
See TracChangeset
for help on using the changeset viewer.