Changeset 53442 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/src/VBox
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r53407 r53442 414 414 , mpVmm2UserMethods(NULL) 415 415 , m_pVMMDev(NULL) 416 #ifndef VBOX_WITH_PDM_AUDIO_DRIVER 416 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 417 , mAudioVRDE(NULL) 418 #else 417 419 , mAudioSniffer(NULL) 418 420 #endif … … 596 598 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 597 599 unconst(mAudioVRDE) = new AudioVRDE(this); 598 Assert ComRCReturnRC(rc);600 AssertReturn(mAudioVRDE, E_FAIL); 599 601 #else 600 602 unconst(mAudioSniffer) = new AudioSniffer(this); 601 603 AssertReturn(mAudioSniffer, E_FAIL); 602 604 #endif 603 604 605 FirmwareType_T enmFirmwareType; 605 606 mMachine->COMGETTER(FirmwareType)(&enmFirmwareType); … … 730 731 } 731 732 #endif 732 #ifndef VBOX_WITH_PDM_AUDIO_DRIVER 733 734 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 735 if (mAudioVRDE) 736 { 737 delete mAudioVRDE; 738 unconst(mAudioVRDE) = NULL; 739 } 740 #else 733 741 if (mAudioSniffer) 734 742 { … … 1433 1441 if (fu32Intercepted & VRDE_CLIENT_INTERCEPT_AUDIO) 1434 1442 { 1443 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 1444 if (mAudioVRDE) 1445 mAudioVRDE->onVRDEInputIntercept(false /* fIntercept */); 1446 #else 1435 1447 mcAudioRefs--; 1436 1448 1437 1449 if (mcAudioRefs <= 0) 1438 1450 { 1439 #ifndef VBOX_WITH_PDM_AUDIO_DRIVER1440 1451 if (mAudioSniffer) 1441 1452 { 1442 1453 PPDMIAUDIOSNIFFERPORT port = mAudioSniffer->getAudioSnifferPort(); 1443 1454 if (port) 1444 {1445 1455 port->pfnSetup(port, false, false); 1446 }1447 1456 } 1457 } 1448 1458 #endif 1449 }1450 1459 } 1451 1460 … … 1480 1489 AutoCaller autoCaller(this); 1481 1490 AssertComRCReturnVoid(autoCaller.rc()); 1482 #ifndef VBOX_WITH_PDM_AUDIO_DRIVER 1483 LogFlowFunc(("mAudioSniffer %p, u32ClientId %d.\n", 1484 mAudioSniffer, u32ClientId)); 1485 NOREF(u32ClientId); 1486 #endif 1487 1491 1492 LogFlowFunc(("u32ClientId=%RU32\n", u32ClientId)); 1493 1494 #ifdef VBOX_WITH_PDM_AUDIO_DRIVER 1495 if (mAudioVRDE) 1496 mAudioVRDE->onVRDEInputIntercept(true /* fIntercept */); 1497 #else 1488 1498 ++mcAudioRefs; 1489 1499 1490 1500 if (mcAudioRefs == 1) 1491 1501 { 1492 #ifndef VBOX_WITH_PDM_AUDIO_DRIVER1493 1502 if (mAudioSniffer) 1494 1503 { 1495 1504 PPDMIAUDIOSNIFFERPORT port = mAudioSniffer->getAudioSnifferPort(); 1496 1505 if (port) 1497 {1498 1506 port->pfnSetup(port, true, true); 1499 1500 1507 } 1508 } 1501 1509 #endif 1502 }1503 1510 1504 1511 LogFlowFuncLeave();
Note:
See TracChangeset
for help on using the changeset viewer.