VirtualBox

Changeset 63481 in vbox for trunk/src/VBox/Devices/Audio


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

Audio: callback fixes

Location:
trunk/src/VBox/Devices/Audio
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp

    r63467 r63481  
    992992 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    993993 */
    994 int drvHostALSAAudioInit(PPDMIHOSTAUDIO pInterface)
     994static DECLCALLBACK(int) drvHostALSAAudioInit(PPDMIHOSTAUDIO pInterface)
    995995{
    996996    NOREF(pInterface);
     
    10151015 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    10161016 */
    1017 int drvHostALSAAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     1017static DECLCALLBACK(int) drvHostALSAAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    10181018{
    10191019    RT_NOREF(pvBuf, cbBuf);
     
    11701170 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    11711171 */
    1172 int drvHostALSAAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     1172static DECLCALLBACK(int) drvHostALSAAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    11731173{
    11741174    RT_NOREF(pvBuf, cbBuf);
     
    15251525 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    15261526 */
    1527 int drvHostALSAAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     1527static DECLCALLBACK(int) drvHostALSAAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    15281528{
    15291529    NOREF(pInterface);
     
    16051605 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    16061606 */
    1607 void drvHostALSAAudioShutdown(PPDMIHOSTAUDIO pInterface)
     1607static DECLCALLBACK(void) drvHostALSAAudioShutdown(PPDMIHOSTAUDIO pInterface)
    16081608{
    16091609    NOREF(pInterface);
     
    16141614 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    16151615 */
    1616 PDMAUDIOBACKENDSTS drvHostALSAAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     1616static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostALSAAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    16171617{
    16181618    RT_NOREF(enmDir);
     
    16261626 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    16271627 */
    1628 int drvHostALSAAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     1628static DECLCALLBACK(int) drvHostALSAAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    16291629{
    16301630    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    16471647 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    16481648 */
    1649 int drvHostALSAAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1649static DECLCALLBACK(int) drvHostALSAAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    16501650{
    16511651    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    16651665 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    16661666 */
    1667 int drvHostALSAAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     1667static DECLCALLBACK(int) drvHostALSAAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    16681668{
    16691669    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    16851685 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    16861686 */
    1687 PDMAUDIOSTRMSTS drvHostALSAAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1687static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostALSAAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    16881688{
    16891689    NOREF(pInterface);
     
    17181718 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate}
    17191719 */
    1720 int drvHostALSAAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1720static DECLCALLBACK(int) drvHostALSAAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    17211721{
    17221722    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r63467 r63481  
    20812081 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    20822082 */
    2083 int drvHostDSoundInit(PPDMIHOSTAUDIO pInterface)
     2083static DECLCALLBACK(int) drvHostDSoundInit(PPDMIHOSTAUDIO pInterface)
    20842084{
    20852085    PDRVHOSTDSOUND pThis = PDMIHOSTAUDIO_2_DRVHOSTDSOUND(pInterface);
     
    21762176 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    21772177 */
    2178 PDMAUDIOBACKENDSTS drvHostDSoundGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     2178static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostDSoundGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    21792179{
    21802180    RT_NOREF(enmDir);
     
    21882188 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    21892189 */
    2190 int drvHostDSoundStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     2190static DECLCALLBACK(int) drvHostDSoundStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    21912191{
    21922192    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    22102210 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    22112211 */
    2212 int drvHostDSoundStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     2212static DECLCALLBACK(int) drvHostDSoundStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    22132213{
    22142214    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    22302230 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    22312231 */
    2232 int drvHostDSoundStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     2232static DECLCALLBACK(int) drvHostDSoundStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    22332233{
    22342234    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    22522252 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus}
    22532253 */
    2254 PDMAUDIOSTRMSTS drvHostDSoundStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     2254static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostDSoundStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    22552255{
    22562256    AssertPtrReturn(pInterface, PDMAUDIOSTRMSTS_FLAG_NONE);
     
    22912291 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate}
    22922292 */
    2293 int drvHostDSoundStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     2293static DECLCALLBACK(int) drvHostDSoundStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    22942294{
    22952295    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
  • trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp

    r63468 r63481  
    7575 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    7676 */
    77 int drvHostDebugAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     77static DECLCALLBACK(int) drvHostDebugAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    7878{
    7979    NOREF(pInterface);
     
    9797 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    9898 */
    99 int drvHostDebugAudioInit(PPDMIHOSTAUDIO pInterface)
     99static DECLCALLBACK(int) drvHostDebugAudioInit(PPDMIHOSTAUDIO pInterface)
    100100{
    101101    NOREF(pInterface);
     
    109109 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    110110 */
    111 void drvHostDebugAudioShutdown(PPDMIHOSTAUDIO pInterface)
     111static DECLCALLBACK(void) drvHostDebugAudioShutdown(PPDMIHOSTAUDIO pInterface)
    112112{
    113113    NOREF(pInterface);
     
    118118 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    119119 */
    120 PDMAUDIOBACKENDSTS drvHostDebugAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     120static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostDebugAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    121121{
    122122    RT_NOREF(enmDir);
     
    193193 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    194194 */
    195 int drvHostDebugAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     195static DECLCALLBACK(int) drvHostDebugAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    196196{
    197197    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    213213 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    214214 */
    215 int drvHostDebugAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     215static DECLCALLBACK(int) drvHostDebugAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    216216{
    217217    RT_NOREF(pvBuf, cbBuf);
     
    284284 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    285285 */
    286 int drvHostDebugAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     286static DECLCALLBACK(int) drvHostDebugAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    287287{
    288288    RT_NOREF(pInterface, pStream, pvBuf, cbBuf);
  • trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp

    r63467 r63481  
    9393 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    9494 */
    95 int drvHostNullAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     95static DECLCALLBACK(int) drvHostNullAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    9696{
    9797    NOREF(pInterface);
     
    115115 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    116116 */
    117 int drvHostNullAudioInit(PPDMIHOSTAUDIO pInterface)
     117static DECLCALLBACK(int) drvHostNullAudioInit(PPDMIHOSTAUDIO pInterface)
    118118{
    119119    NOREF(pInterface);
     
    127127 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    128128 */
    129 void drvHostNullAudioShutdown(PPDMIHOSTAUDIO pInterface)
     129static DECLCALLBACK(void) drvHostNullAudioShutdown(PPDMIHOSTAUDIO pInterface)
    130130{
    131131    RT_NOREF(pInterface);
     
    136136 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    137137 */
    138 PDMAUDIOBACKENDSTS drvHostNullAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     138static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostNullAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    139139{
    140140    RT_NOREF(enmDir);
     
    148148 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    149149 */
    150 int drvHostNullAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     150static DECLCALLBACK(int) drvHostNullAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    151151{
    152152    RT_NOREF2(pvBuf, cbBuf);
     
    192192 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    193193 */
    194 int drvHostNullAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     194static DECLCALLBACK(int) drvHostNullAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    195195{
    196196    RT_NOREF4(pInterface, pStream, pvBuf, cbBuf);
     
    248248 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    249249 */
    250 int drvHostNullAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     250static DECLCALLBACK(int) drvHostNullAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    251251{
    252252    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    290290 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    291291 */
    292 int drvHostNullAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     292static DECLCALLBACK(int) drvHostNullAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    293293{
    294294    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    308308 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    309309 */
    310 int drvHostNullAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     310static DECLCALLBACK(int) drvHostNullAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    311311{
    312312    RT_NOREF(enmStreamCmd);
     
    323323 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus}
    324324 */
    325 PDMAUDIOSTRMSTS drvHostNullAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     325static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostNullAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    326326{
    327327    RT_NOREF(pInterface, pStream);
     
    334334 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate}
    335335 */
    336 int drvHostNullAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     336static DECLCALLBACK(int) drvHostNullAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    337337{
    338338    NOREF(pInterface);
  • trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp

    r63467 r63481  
    403403 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    404404 */
    405 int drvHostOSSAudioInit(PPDMIHOSTAUDIO pInterface)
     405static DECLCALLBACK(int) drvHostOSSAudioInit(PPDMIHOSTAUDIO pInterface)
    406406{
    407407    RT_NOREF(pInterface);
     
    416416 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    417417 */
    418 int drvHostOSSAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     418static DECLCALLBACK(int) drvHostOSSAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    419419{
    420420    RT_NOREF(pInterface, cbBuf, pvBuf);
     
    578578 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    579579 */
    580 int drvHostOSSAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     580static DECLCALLBACK(int) drvHostOSSAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    581581{
    582582    RT_NOREF(pInterface);
     
    849849 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    850850 */
    851 int drvHostOSSAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     851static DECLCALLBACK(int) drvHostOSSAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    852852{
    853853    RT_NOREF(pInterface, cbBuf, pvBuf);
     
    978978 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    979979 */
    980 void drvHostOSSAudioShutdown(PPDMIHOSTAUDIO pInterface)
     980static DECLCALLBACK(void) drvHostOSSAudioShutdown(PPDMIHOSTAUDIO pInterface)
    981981{
    982982    RT_NOREF(pInterface);
     
    987987 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    988988 */
    989 PDMAUDIOBACKENDSTS drvHostOSSAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     989static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostOSSAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    990990{
    991991    AssertPtrReturn(pInterface, PDMAUDIOBACKENDSTS_UNKNOWN);
     
    999999 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    10001000 */
    1001 int drvHostOSSAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     1001static DECLCALLBACK(int) drvHostOSSAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    10021002{
    10031003    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    10191019 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    10201020 */
    1021 int drvHostOSSAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1021static DECLCALLBACK(int) drvHostOSSAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    10221022{
    10231023    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    10371037 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    10381038 */
    1039 int drvHostOSSAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     1039static DECLCALLBACK(int) drvHostOSSAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    10401040{
    10411041    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    10571057 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate}
    10581058 */
    1059 int drvHostOSSAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1059static DECLCALLBACK(int) drvHostOSSAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    10601060{
    10611061    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    10721072 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus}
    10731073 */
    1074 PDMAUDIOSTRMSTS drvHostOSSAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1074static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostOSSAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    10751075{
    10761076    RT_NOREF(pInterface);
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r63467 r63481  
    523523 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    524524 */
    525 int drvHostPulseAudioInit(PPDMIHOSTAUDIO pInterface)
     525static DECLCALLBACK(int) drvHostPulseAudioInit(PPDMIHOSTAUDIO pInterface)
    526526{
    527527    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    750750 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    751751 */
    752 int drvHostPulseAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
     752static DECLCALLBACK(int) drvHostPulseAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)
    753753{
    754754    RT_NOREF(pvBuf, cbBuf);
     
    876876 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    877877 */
    878 int drvHostPulseAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
     878static DECLCALLBACK(int) drvHostPulseAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, const void *pvBuf, uint32_t cbBuf, uint32_t *pcbWritten)
    879879{
    880880    RT_NOREF(pvBuf, cbBuf);
     
    13251325 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    13261326 */
    1327 void drvHostPulseAudioShutdown(PPDMIHOSTAUDIO pInterface)
     1327static DECLCALLBACK(void) drvHostPulseAudioShutdown(PPDMIHOSTAUDIO pInterface)
    13281328{
    13291329    AssertPtrReturnVoid(pInterface);
     
    13561356 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    13571357 */
    1358 int drvHostPulseAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     1358static DECLCALLBACK(int) drvHostPulseAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    13591359{
    13601360    AssertPtrReturn(pInterface,  VERR_INVALID_POINTER);
     
    13701370 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    13711371 */
    1372 PDMAUDIOBACKENDSTS drvHostPulseAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     1372static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostPulseAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    13731373{
    13741374    RT_NOREF(enmDir);
     
    13821382 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    13831383 */
    1384 int drvHostPulseAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     1384static DECLCALLBACK(int) drvHostPulseAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    13851385{
    13861386    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    14041404 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    14051405 */
    1406 int drvHostPulseAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1406static DECLCALLBACK(int) drvHostPulseAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    14071407{
    14081408    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    14241424 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    14251425 */
    1426 int drvHostPulseAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     1426static DECLCALLBACK(int) drvHostPulseAudioStreamControl(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    14271427{
    14281428    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    14461446 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus}
    14471447 */
    1448 PDMAUDIOSTRMSTS drvHostPulseAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1448static DECLCALLBACK(PDMAUDIOSTRMSTS) drvHostPulseAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    14491449{
    14501450    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    14871487 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetConfig}
    14881488 */
    1489 int drvHostPulseAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
     1489static DECLCALLBACK(int) drvHostPulseAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream)
    14901490{
    14911491    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