Changeset 54368 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Feb 23, 2015 8:42:30 AM (10 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r54230 r54368 49 49 PPDMDRVINS pDrvIns; 50 50 /** Pointer to the driver instance structure. */ 51 PDMIHOSTAUDIO IHostAudio R3;51 PDMIHOSTAUDIO IHostAudio; 52 52 /** Pointer to the VRDP's console object. */ 53 53 ConsoleVRDPServer *pConsoleVRDPServer; … … 89 89 uint32_t *pcSamples) 90 90 { 91 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);91 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 92 92 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 93 93 … … 105 105 uint32_t *pcSamples) 106 106 { 107 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);107 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 108 108 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 109 109 … … 121 121 static DECLCALLBACK(bool) drvAudioVRDEIsEnabled(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir) 122 122 { 123 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);123 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 124 124 AssertPtrReturn(pDrv, false); 125 125 … … 149 149 AssertPtrReturn(pcSamplesCaptured, VERR_INVALID_POINTER); 150 150 151 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);151 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 152 152 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 153 153 … … 197 197 /* pcSamplesPlayed is optional. */ 198 198 199 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);199 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 200 200 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 201 201 … … 275 275 static DECLCALLBACK(int) drvAudioVRDEFiniIn(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMIN pHstStrmIn) 276 276 { 277 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);277 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 278 278 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 279 279 … … 286 286 static DECLCALLBACK(int) drvAudioVRDEFiniOut(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMOUT pHstStrmOut) 287 287 { 288 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);288 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 289 289 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 290 290 … … 295 295 PDMAUDIOSTREAMCMD enmStreamCmd) 296 296 { 297 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);297 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 298 298 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 299 299 … … 311 311 PDMAUDIOSTREAMCMD enmStreamCmd) 312 312 { 313 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio R3);313 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 314 314 AssertPtrReturn(pDrv, VERR_INVALID_POINTER); 315 315 … … 367 367 368 368 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase); 369 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHOSTAUDIO, &pThis->IHostAudio R3);369 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHOSTAUDIO, &pThis->IHostAudio); 370 370 return NULL; 371 371 } … … 483 483 /* IBase */ 484 484 pDrvIns->IBase.pfnQueryInterface = drvAudioVRDEQueryInterface; 485 /* IHostAudio R3*/486 PDMAUDIO_IHOSTAUDIO R3_CALLBACKS(drvAudioVRDE);485 /* IHostAudio */ 486 PDMAUDIO_IHOSTAUDIO_CALLBACKS(drvAudioVRDE); 487 487 488 488 /* Init defaults. */ -
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r54230 r54368 81 81 PPDMDRVINS pDrvIns; 82 82 /** Pointer to the driver instance structure. */ 83 PDMIHOSTAUDIO IHostAudio R3;83 PDMIHOSTAUDIO IHostAudio; 84 84 ConsoleVRDPServer *pConsoleVRDPServer; 85 85 /** Pointer to the DrvAudio port interface that is above it. */ … … 380 380 { 381 381 LogFlowFuncEnter(); 382 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);382 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 383 383 384 384 PVIDEORECAUDIOOUT pVRDEVoiceOut = (PVIDEORECAUDIOOUT)pHostVoiceOut; … … 391 391 { 392 392 LogFlowFuncEnter(); 393 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);393 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 394 394 395 395 PVIDEORECAUDIOIN pVRDEVoice = (PVIDEORECAUDIOIN)pHostVoiceIn; … … 478 478 uint32_t *pcSamplesPlayed) 479 479 { 480 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);480 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 481 481 PVIDEORECAUDIOOUT pVRDEVoiceOut = (PVIDEORECAUDIOOUT)pHostVoiceOut; 482 482 … … 535 535 static DECLCALLBACK(int) drvAudioVideoRecFiniIn(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMIN hw) 536 536 { 537 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);537 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 538 538 LogFlowFuncEnter(); 539 539 pDrv->pConsoleVRDPServer->SendAudioInputEnd(NULL); … … 544 544 static DECLCALLBACK(int) drvAudioVideoRecFiniOut(PPDMIHOSTAUDIO pInterface, PPDMAUDIOHSTSTRMOUT pHostVoiceOut) 545 545 { 546 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);546 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 547 547 LogFlowFuncEnter(); 548 548 … … 553 553 PDMAUDIOSTREAMCMD enmStreamCmd) 554 554 { 555 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);555 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 556 556 LogFlowFuncEnter(); 557 557 … … 562 562 PDMAUDIOSTREAMCMD enmStreamCmd) 563 563 { 564 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio R3);564 PDRVAUDIOVIDEOREC pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVIDEOREC, IHostAudio); 565 565 566 566 /* Initialize VRDEVoice and return to VRDP server which returns this struct back to us … … 637 637 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC); 638 638 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase); 639 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHOSTAUDIO, &pThis->IHostAudio R3);639 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHOSTAUDIO, &pThis->IHostAudio); 640 640 return NULL; 641 641 } … … 811 811 /* IBase */ 812 812 pDrvIns->IBase.pfnQueryInterface = drvAudioVideoRecQueryInterface; 813 /* IHostAudio R3*/814 PDMAUDIO_IHOSTAUDIO R3_CALLBACKS(drvAudioVideoRec);813 /* IHostAudio */ 814 PDMAUDIO_IHOSTAUDIO_CALLBACKS(drvAudioVideoRec); 815 815 816 816 /* Get VRDPServer pointer. */
Note:
See TracChangeset
for help on using the changeset viewer.