Changeset 88887 in vbox for trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
- Timestamp:
- May 5, 2021 11:38:58 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r88885 r88887 415 415 } 416 416 } 417 pDrv->pConsoleVRDPServer = NULL; 417 pDrv->pConsoleVRDPServer = NULL; /** @todo r=bird: WTF? */ 418 418 419 419 return VINF_SUCCESS; … … 595 595 596 596 /** 597 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus} 598 */ 599 static DECLCALLBACK(uint32_t) drvAudioVrdeHA_StreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 597 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetState} 598 */ 599 static DECLCALLBACK(PDMHOSTAUDIOSTREAMSTATE) drvAudioVrdeHA_StreamGetState(PPDMIHOSTAUDIO pInterface, 600 PPDMAUDIOBACKENDSTREAM pStream) 600 601 { 601 602 PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio); 602 RT_NOREF(pStream); 603 604 return pDrv->cClients > 0 605 ? PDMAUDIOSTREAM_STS_INITIALIZED | PDMAUDIOSTREAM_STS_ENABLED 606 #if 0 /* later mabye */ /** @todo r=bird: Weird backend status mess. */ 607 : PDMAUDIOSTREAM_STS_NONE /* play possum if the clients all disappears. Re-init should be underways. */; 608 #else 609 : PDMAUDIOSTREAM_STS_INITIALIZED /* If any clients are connected, flag the stream as enabled. */; 610 #endif 603 AssertPtrReturn(pStream, PDMHOSTAUDIOSTREAMSTATE_INVALID); 604 605 return pDrv->cClients > 0 ? PDMHOSTAUDIOSTREAMSTATE_OKAY : PDMHOSTAUDIOSTREAMSTATE_INACTIVE; 611 606 } 612 607 … … 806 801 pThis->IHostAudio.pfnStreamGetWritable = drvAudioVrdeHA_StreamGetWritable; 807 802 pThis->IHostAudio.pfnStreamGetPending = NULL; 808 pThis->IHostAudio.pfnStreamGetStat us = drvAudioVrdeHA_StreamGetStatus;803 pThis->IHostAudio.pfnStreamGetState = drvAudioVrdeHA_StreamGetState; 809 804 pThis->IHostAudio.pfnStreamPlay = drvAudioVrdeHA_StreamPlay; 810 805 pThis->IHostAudio.pfnStreamCapture = drvAudioVrdeHA_StreamCapture;
Note:
See TracChangeset
for help on using the changeset viewer.