VirtualBox

Changeset 63477 in vbox for trunk/src


Ignore:
Timestamp:
Aug 15, 2016 2:03:00 PM (8 years ago)
Author:
vboxsync
Message:

Main/DrvAudioVRDE: callback fixes

File:
1 edited

Legend:

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

    r63467 r63477  
    180180 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    181181 */
    182 int drvAudioVRDEInit(PPDMIHOSTAUDIO pInterface)
     182static DECLCALLBACK(int) drvAudioVRDEInit(PPDMIHOSTAUDIO pInterface)
    183183{
    184184    RT_NOREF(pInterface);
     
    192192 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    193193 */
    194 int drvAudioVRDEStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     194static DECLCALLBACK(int) drvAudioVRDEStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    195195{
    196196    RT_NOREF2(pvBuf, cbBuf);
     
    232232 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    233233 */
    234 int drvAudioVRDEStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     234static DECLCALLBACK(int) drvAudioVRDEStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    235235{
    236236    RT_NOREF2(pvBuf, cbBuf);
     
    337337 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    338338 */
    339 int drvAudioVRDEGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     339static DECLCALLBACK(int) drvAudioVRDEGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    340340{
    341341    NOREF(pInterface);
     
    356356 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    357357 */
    358 void drvAudioVRDEShutdown(PPDMIHOSTAUDIO pInterface)
     358static DECLCALLBACK(void) drvAudioVRDEShutdown(PPDMIHOSTAUDIO pInterface)
    359359{
    360360    PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio);
     
    369369 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    370370 */
    371 PDMAUDIOBACKENDSTS drvAudioVRDEGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     371static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvAudioVRDEGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    372372{
    373373    RT_NOREF(enmDir);
     
    381381 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    382382 */
    383 int drvAudioVRDEStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     383static DECLCALLBACK(int) drvAudioVRDEStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    384384{
    385385    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    401401 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    402402 */
    403 int drvAudioVRDEStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     403static DECLCALLBACK(int) drvAudioVRDEStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    404404{
    405405    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    419419 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    420420 */
    421 int drvAudioVRDEStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     421static DECLCALLBACK(int) drvAudioVRDEStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    422422{
    423423    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    439439 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus}
    440440 */
    441 PDMAUDIOSTRMSTS drvAudioVRDEStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     441static DECLCALLBACK(PDMAUDIOSTRMSTS) drvAudioVRDEStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    442442{
    443443    NOREF(pInterface);
     
    452452 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate}
    453453 */
    454 int drvAudioVRDEStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     454static DECLCALLBACK(int) drvAudioVRDEStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    455455{
    456456    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
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