VirtualBox

Changeset 88362 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Apr 5, 2021 12:31:17 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143609
Message:

Audio: Removed PDMIHOSTAUDIO::pfnSetCallback (replaced by PDMIAUDIONOTIFYFROMHOST). bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r88359 r88362  
    993993
    994994
    995 /**
    996  * Audio backend callback types.
    997  * Those callbacks are being sent from the backend -> audio connector.
    998  */
    999 typedef enum PDMAUDIOBACKENDCBTYPE
    1000 {
    1001     /** Invalid, do not use. */
    1002     PDMAUDIOBACKENDCBTYPE_INVALID = 0,
    1003     /** The backend's status has changed. */
    1004     PDMAUDIOBACKENDCBTYPE_STATUS,
    1005     /** One or more host audio devices have changed. */
    1006     PDMAUDIOBACKENDCBTYPE_DEVICES_CHANGED,
    1007     /** Hack to blow the type up to 32-bit. */
    1008     PDMAUDIOBACKENDCBTYPE_32BIT_HACK = 0x7fffffff
    1009 } PDMAUDIOBACKENDCBTYPE;
    1010 
    1011 /** Pointer to a host audio interface. */
    1012 typedef struct PDMIHOSTAUDIO *PPDMIHOSTAUDIO;
    1013 
    1014 /**
    1015  * Host audio callback function.
    1016  *
    1017  * This function will be called from a backend to communicate with the host audio interface.
    1018  *
    1019  * @returns VBox status code.
    1020  * @param   pDrvIns             Pointer to driver instance which called us.
    1021  * @param   enmType             Callback type.
    1022  * @param   pvUser              User argument.
    1023  * @param   cbUser              Size (in bytes) of user argument.
    1024  */
    1025 typedef DECLCALLBACKTYPE(int, FNPDMHOSTAUDIOCALLBACK,(PPDMDRVINS pDrvIns, PDMAUDIOBACKENDCBTYPE enmType,
    1026                                                       void *pvUser, size_t cbUser));
    1027 /** Pointer to a FNPDMHOSTAUDIOCALLBACK(). */
    1028 typedef FNPDMHOSTAUDIOCALLBACK *PFNPDMHOSTAUDIOCALLBACK;
    1029 
    1030995
    1031996/** @todo r=bird: What is this exactly? */
    1032997#define PPDMAUDIOBACKENDSTREAM void *
     998
    1033999
    10341000/** Pointer to a audio connector interface. */
     
    12381204
    12391205
     1206/** Pointer to a host audio interface. */
     1207typedef struct PDMIHOSTAUDIO *PPDMIHOSTAUDIO;
     1208
    12401209/**
    12411210 * PDM host audio interface.
     
    12871256     */
    12881257    DECLR3CALLBACKMEMBER(PDMAUDIOBACKENDSTS, pfnGetStatus, (PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir));
    1289 
    1290     /**
    1291      * Sets a callback the audio backend can call. Optional.
    1292      *
    1293      * @returns VBox status code.
    1294      * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    1295      * @param   pfnCallback         The callback function to use, or NULL when unregistering.
    1296      */
    1297     DECLR3CALLBACKMEMBER(int, pfnSetCallback, (PPDMIHOSTAUDIO pInterface, PFNPDMHOSTAUDIOCALLBACK pfnCallback));
    12981258
    12991259    /**
     
    14491409
    14501410/** PDMIHOSTAUDIO interface ID. */
    1451 #define PDMIHOSTAUDIO_IID                           "be34182b-d579-41e8-96e0-abb94900460f"
     1411#define PDMIHOSTAUDIO_IID                           "fafc2dfb-eaa8-4e8f-9d13-ffe9163e7c51"
    14521412
    14531413
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette