Changeset 68076 in vbox
- Timestamp:
- Jul 21, 2017 10:02:51 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/VBox/vmm/pdmaudioifs.h (modified) (3 diffs)
-
src/VBox/Devices/Audio/DrvAudio.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r67695 r68076 1213 1213 1214 1214 /** 1215 * Signals the backend that the host wants to begin playing for this iteration. Optional. 1216 * 1217 * @param pInterface Pointer to the interface structure containing the called function pointer. 1218 * @param pStream Pointer to audio stream. 1219 */ 1220 DECLR3CALLBACKMEMBER(void, pfnStreamPlayBegin, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1221 1222 /** 1215 1223 * Plays (writes to) an audio (output) stream. 1216 1224 * … … 1225 1233 1226 1234 /** 1235 * Signals the backend that the host finished playing for this iteration. Optional. 1236 * 1237 * @param pInterface Pointer to the interface structure containing the called function pointer. 1238 * @param pStream Pointer to audio stream. 1239 */ 1240 DECLR3CALLBACKMEMBER(void, pfnStreamPlayEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1241 1242 /** 1243 * Signals the backend that the host wants to begin capturing for this iteration. Optional. 1244 * 1245 * @param pInterface Pointer to the interface structure containing the called function pointer. 1246 * @param pStream Pointer to audio stream. 1247 */ 1248 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureBegin, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1249 1250 /** 1227 1251 * Captures (reads from) an audio (input) stream. 1228 1252 * … … 1236 1260 DECLR3CALLBACKMEMBER(int, pfnStreamCapture, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead)); 1237 1261 1262 /** 1263 * Signals the backend that the host finished capturing for this iteration. Optional. 1264 * 1265 * @param pInterface Pointer to the interface structure containing the called function pointer. 1266 * @param pStream Pointer to audio stream. 1267 */ 1268 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1269 1238 1270 } PDMIHOSTAUDIO; 1239 1271 1240 1272 /** PDMIHOSTAUDIO interface ID. */ 1241 #define PDMIHOSTAUDIO_IID " 12DF859E-416A-4332-9980-A049AC70D187"1273 #define PDMIHOSTAUDIO_IID "378A5C7F-A45A-4B8B-C1DA-CB49E84894AA" 1242 1274 1243 1275 /** @} */ -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r68067 r68076 1503 1503 uint32_t csToPlay = AudioMixBufLive(&pHstStream->MixBuf); 1504 1504 1505 if (pThis->pHostDrvAudio->pfnStreamPlayBegin) 1506 pThis->pHostDrvAudio->pfnStreamPlayBegin(pThis->pHostDrvAudio, pHstStream->pvBackend); 1507 1505 1508 if (RT_LIKELY(pHstStream->Cfg.enmLayout == PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED)) 1506 1509 { … … 1513 1516 else 1514 1517 AssertFailedStmt(rc = VERR_NOT_IMPLEMENTED); 1518 1519 if (pThis->pHostDrvAudio->pfnStreamPlayEnd) 1520 pThis->pHostDrvAudio->pfnStreamPlayEnd(pThis->pHostDrvAudio, pHstStream->pvBackend); 1515 1521 1516 1522 uint32_t csLive = 0; … … 1789 1795 */ 1790 1796 1797 if (pThis->pHostDrvAudio->pfnStreamCaptureBegin) 1798 pThis->pHostDrvAudio->pfnStreamCaptureBegin(pThis->pHostDrvAudio, pHstStream->pvBackend); 1799 1791 1800 if (RT_LIKELY(pHstStream->Cfg.enmLayout == PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED)) 1792 1801 { … … 1799 1808 else 1800 1809 AssertFailedStmt(rc = VERR_NOT_IMPLEMENTED); 1810 1811 if (pThis->pHostDrvAudio->pfnStreamCaptureEnd) 1812 pThis->pHostDrvAudio->pfnStreamCaptureEnd(pThis->pHostDrvAudio, pHstStream->pvBackend); 1801 1813 1802 1814 #ifdef LOG_ENABLED
Note:
See TracChangeset
for help on using the changeset viewer.

