Changeset 89489 in vbox for trunk/include
- Timestamp:
- Jun 3, 2021 11:00:02 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r89487 r89489 641 641 typedef struct PDMAUDIOSTREAMCFG 642 642 { 643 /** The stream's PCM properties. */ 644 PDMAUDIOPCMPROPS Props; 643 645 /** Direction of the stream. */ 644 646 PDMAUDIODIR enmDir; 645 647 /** Destination / source path. */ 646 648 PDMAUDIOPATH enmPath; 647 /** The stream's PCM properties. */648 PDMAUDIOPCMPROPS Props;649 649 /** Device emulation-specific data needed for the audio connector. */ 650 650 struct … … 874 874 * - Before DRVAUDIO::CritSectHotPlug. */ 875 875 RTCRITSECT CritSect; 876 /** Stream configuration. */ 877 PDMAUDIOSTREAMCFG Cfg; 876 878 /** Magic value (PDMAUDIOSTREAM_MAGIC). */ 877 879 uint32_t uMagic; 878 /** Audio direction of this stream. */879 PDMAUDIODIR enmDir;880 880 /** Size (in bytes) of the backend-specific stream data. */ 881 881 uint32_t cbBackend; … … 883 883 * See PDMAUDIOSTREAM_WARN_FLAGS_XXX. */ 884 884 uint32_t fWarningsShown; 885 /** The stream properties. */886 PDMAUDIOPCMPROPS Props;887 888 /** Name of this stream. */889 char szName[64];890 885 } PDMAUDIOSTREAM; 891 886 /** Pointer to an audio stream. */ … … 960 955 * configuring host audio. 961 956 * 962 * @param pInterface 963 * @param pCfg 964 * 957 * @param pInterface Pointer to this interface. 958 * @param pCfg The typical configuration. Can be modified by the 959 * drivers in unspecified ways. 965 960 */ 966 961 DECLR3CALLBACKMEMBER(void, pfnStreamConfigHint, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAMCFG pCfg)); … … 970 965 * 971 966 * @returns VBox status code. 972 * @param pInterface Pointer to the interface structure containing the called function pointer. 973 * @param fFlags PDMAUDIOSTREAM_CREATE_F_XXX. 974 * @param pCfgHost Stream configuration for host side. 975 * @param pCfgGuest Stream configuration for guest side. 976 * @param ppStream Pointer where to return the created audio stream on success. 977 * @todo r=bird: It is not documented how pCfgHost and pCfgGuest can be 978 * modified the DrvAudio... 979 */ 980 DECLR3CALLBACKMEMBER(int, pfnStreamCreate, (PPDMIAUDIOCONNECTOR pInterface, uint32_t fFlags, PPDMAUDIOSTREAMCFG pCfgHost, 981 PPDMAUDIOSTREAMCFG pCfgGuest, PPDMAUDIOSTREAM *ppStream)); 967 * @param pInterface Pointer to this interface. 968 * @param fFlags PDMAUDIOSTREAM_CREATE_F_XXX. 969 * @param pCfgReq The requested stream configuration. The actual stream 970 * configuration can be found in pStream->Cfg on success. 971 * @param ppStream Pointer where to return the created audio stream on 972 * success. 973 */ 974 DECLR3CALLBACKMEMBER(int, pfnStreamCreate, (PPDMIAUDIOCONNECTOR pInterface, uint32_t fFlags, PCPDMAUDIOSTREAMCFG pCfgReq, 975 PPDMAUDIOSTREAM *ppStream)); 982 976 983 977 … … 1097 1091 1098 1092 /** PDMIAUDIOCONNECTOR interface ID. */ 1099 #define PDMIAUDIOCONNECTOR_IID " ae82616d-0da7-489a-aa4c-3e74d112ca9c"1093 #define PDMIAUDIOCONNECTOR_IID "2900fe2a-6aeb-4953-ac12-f8965612f446" 1100 1094 1101 1095 … … 1315 1309 PDMAUDIOSTREAMCMD enmStreamCmd)); 1316 1310 1317 /**1318 * Returns the amount which is readable from the audio (input) stream.1319 *1320 * @returns For non-raw layout streams: Number of readable bytes.1321 * for raw layout streams : Number of readable audio frames.1322 * @param pInterface Pointer to the interface structure containing the called function pointer.1323 * @param pStream Pointer to audio stream.1324 */1325 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetReadable, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1326 1327 /**1328 * Returns the amount which is writable to the audio (output) stream.1329 *1330 * @returns Number of writable bytes.1331 * @param pInterface Pointer to the interface structure containing the called function pointer.1332 * @param pStream Pointer to audio stream.1333 */1334 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetWritable, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1335 1336 /**1337 * Returns the number of buffered bytes that hasn't been played yet (optional).1338 *1339 * Is not valid on an input stream, implementions shall assert and return zero.1340 *1341 * @returns Number of pending bytes.1342 * @param pInterface Pointer to this interface.1343 * @param pStream Pointer to audio stream.1344 *1345 * @todo This is no longer not used by DrvAudio and can probably be removed.1346 */1347 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetPending, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1348 1311 1349 1312 /** … … 1356 1319 */ 1357 1320 DECLR3CALLBACKMEMBER(PDMHOSTAUDIOSTREAMSTATE, pfnStreamGetState, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1321 1322 /** 1323 * Returns the number of buffered bytes that hasn't been played yet (optional). 1324 * 1325 * Is not valid on an input stream, implementions shall assert and return zero. 1326 * 1327 * @returns Number of pending bytes. 1328 * @param pInterface Pointer to this interface. 1329 * @param pStream Pointer to audio stream. 1330 * 1331 * @todo This is no longer not used by DrvAudio and can probably be removed. 1332 */ 1333 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetPending, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1334 1335 /** 1336 * Returns the amount which is writable to the audio (output) stream. 1337 * 1338 * @returns Number of writable bytes. 1339 * @param pInterface Pointer to the interface structure containing the called function pointer. 1340 * @param pStream Pointer to audio stream. 1341 */ 1342 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetWritable, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1358 1343 1359 1344 /** … … 1378 1363 1379 1364 /** 1365 * Returns the amount which is readable from the audio (input) stream. 1366 * 1367 * @returns For non-raw layout streams: Number of readable bytes. 1368 * for raw layout streams : Number of readable audio frames. 1369 * @param pInterface Pointer to the interface structure containing the called function pointer. 1370 * @param pStream Pointer to audio stream. 1371 */ 1372 DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetReadable, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1373 1374 /** 1380 1375 * Captures (reads from) an audio (input) stream. 1381 1376 * … … 1392 1387 1393 1388 /** PDMIHOSTAUDIO interface ID. */ 1394 #define PDMIHOSTAUDIO_IID " 0625ae75-491b-428b-836e-4f8a9869788f"1389 #define PDMIHOSTAUDIO_IID "147dedd7-cac1-469b-b545-335dbe90abf6" 1395 1390 1396 1391 … … 1477 1472 1478 1473 /** PDMIHOSTAUDIOPORT interface ID. */ 1479 #define PDMIHOSTAUDIOPORT_IID " d42144e9-867e-4d1c-86d4-acb92b47f013"1474 #define PDMIHOSTAUDIOPORT_IID "92ea5169-8271-402d-99a7-9de26a52acaf" 1480 1475 1481 1476 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.