Changeset 88884 in vbox for trunk/include/VBox
- Timestamp:
- May 5, 2021 6:27:18 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144219
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r88861 r88884 989 989 } PDMAUDIOBACKENDSTS; 990 990 991 /** 992 * PDM audio stream state. 993 * 994 * This is all the mixer/device needs. The PDMAUDIOSTREAM_STS_XXX stuff will 995 * become DrvAudio internal state once the backend stuff is destilled out of it. 996 * 997 * @note The value order is significant, don't change it willy-nilly. 998 */ 999 typedef enum PDMAUDIOSTREAMSTATE 1000 { 1001 /** Invalid state value. */ 1002 PDMAUDIOSTREAMSTATE_INVALID = 0, 1003 /** The stream is not operative and cannot be enabled. */ 1004 PDMAUDIOSTREAMSTATE_NOT_WORKING, 1005 /** The stream needs to be re-initialized by the device/mixer 1006 * (i.e. call PDMIAUDIOCONNECTOR::pfnStreamReInit). */ 1007 PDMAUDIOSTREAMSTATE_NEED_REINIT, 1008 /** The stream is inactive (not enabled). */ 1009 PDMAUDIOSTREAMSTATE_INACTIVE, 1010 /** The stream is enabled but nothing to read/write. 1011 * @todo not sure if we need this variant... */ 1012 PDMAUDIOSTREAMSTATE_ENABLED, 1013 /** The stream is enabled and captured samples can be read. */ 1014 PDMAUDIOSTREAMSTATE_ENABLED_READABLE, 1015 /** The stream is enabled and samples can be written for playback. */ 1016 PDMAUDIOSTREAMSTATE_ENABLED_WRITABLE, 1017 /** End of valid states. */ 1018 PDMAUDIOSTREAMSTATE_END, 1019 /** Make sure the type is 32-bit wide. */ 1020 PDMAUDIOSTREAMSTATE_32BIT_HACK = 0x7fffffff 1021 } PDMAUDIOSTREAMSTATE; 1022 991 1023 /** @name PDMAUDIOSTREAM_CREATE_F_XXX 992 1024 * @{ */ … … 1190 1222 1191 1223 /** 1192 * Returns the status of a specific audio stream. 1193 * 1194 * @returns PDMAUDIOSTREAM_STS_XXX 1224 * Returns the state of a specific audio stream (destilled status). 1225 * 1226 * @returns PDMAUDIOSTREAMSTATE value. 1227 * @retval PDMAUDIOSTREAMSTATE_INVALID if the input isn't valid (w/ assertion). 1195 1228 * @param pInterface Pointer to the interface structure containing the called function pointer. 1196 1229 * @param pStream Pointer to audio stream. 1197 1230 */ 1198 DECLR3CALLBACKMEMBER( uint32_t, pfnStreamGetStatus, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream));1231 DECLR3CALLBACKMEMBER(PDMAUDIOSTREAMSTATE, pfnStreamGetState, (PPDMIAUDIOCONNECTOR pInterface, PPDMAUDIOSTREAM pStream)); 1199 1232 1200 1233 /** … … 1250 1283 1251 1284 /** PDMIAUDIOCONNECTOR interface ID. */ 1252 #define PDMIAUDIOCONNECTOR_IID " ff6788cc-1a4d-4d4b-a2e0-9f56fce9b397"1285 #define PDMIAUDIOCONNECTOR_IID "5bd85091-e99c-4092-acea-f0c5e9872408" 1253 1286 1254 1287 -
trunk/include/VBox/vmm/pdmaudioinline.h
r88850 r88884 1184 1184 1185 1185 /** 1186 * Checks if the stream status is a read -to-operate one.1186 * Checks if the stream status is a ready-to-operate one. 1187 1187 * 1188 1188 * @returns @c true if ready to operate, @c false if not.
Note:
See TracChangeset
for help on using the changeset viewer.