Changeset 82254 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Nov 27, 2019 10:09:17 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135072
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r82252 r82254 677 677 /** Scheduling hint set by the device emulation about when this stream is being served on average (in ms). 678 678 * Can be 0 if not hint given or some other mechanism (e.g. callbacks) is being used. */ 679 uint32_t uSchedulingHintMs;679 uint32_t cMsSchedulingHint; 680 680 } Device; 681 681 /** … … 690 690 * This value reflects the number of audio frames in between each hardware interrupt on the 691 691 * backend (host) side. 0 if not set / available by the backend. */ 692 uint32_t c fPeriod;693 /** (Ring) buffer size (in audio frames). Often is a multiple of c fPeriod.692 uint32_t cFramesPeriod; 693 /** (Ring) buffer size (in audio frames). Often is a multiple of cFramesPeriod. 694 694 * 0 if not set / available by the backend. */ 695 uint32_t c fBufferSize;695 uint32_t cFramesBufferSize; 696 696 /** Pre-buffering size (in audio frames). Frames needed in buffer before the stream becomes active (pre buffering). 697 697 * The bigger this value is, the more latency for the stream will occur. 698 698 * 0 if not set / available by the backend. UINT32_MAX if not defined (yet). */ 699 uint32_t c fPreBuf;699 uint32_t cFramesPreBuffering; 700 700 } Backend; 701 701 /** Friendly name of the stream. */ … … 1678 1678 * 1679 1679 * @returns VBox status code. 1680 * @param pInterface Pointer to the interface structure containing the called function pointer. 1681 * @param pStream Pointer to audio stream. 1682 * @param pvBuf Pointer to audio data buffer to play. 1683 * @param uBufSize The audio data buffer size (see note below for unit). 1684 * @param puWritten Number of unit written. 1685 * @note The @a uBufSize and @a puWritten values are in bytes for non-raw 1686 * layout streams and in frames for raw layout ones. 1687 */ 1688 DECLR3CALLBACKMEMBER(int, pfnStreamPlay, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 1689 const void *pvBuf, uint32_t uBufSize, uint32_t *puWritten)); 1690 1691 /** 1692 * Signals the backend that the host finished playing for this iteration. Optional. 1693 * 1680 1694 * @param pInterface Pointer to the interface structure containing the called function pointer. 1681 1695 * @param pStream Pointer to audio stream. 1682 * @param pvBuf Pointer to audio data buffer to play. 1683 * @param cxBuf For non-raw layout streams: Size (in bytes) of audio data buffer, 1684 * for raw layout streams : Size (in audio frames) of audio data buffer. 1685 * @param pcxWritten For non-raw layout streams: Returns number of bytes written. Optional. 1686 * for raw layout streams : Returns number of frames written. Optional. 1687 */ 1688 DECLR3CALLBACKMEMBER(int, pfnStreamPlay, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, const void *pvBuf, uint32_t cxBuf, uint32_t *pcxWritten)); 1689 1690 /** 1691 * Signals the backend that the host finished playing for this iteration. Optional. 1696 */ 1697 DECLR3CALLBACKMEMBER(void, pfnStreamPlayEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1698 1699 /** 1700 * Signals the backend that the host wants to begin capturing for this iteration. Optional. 1692 1701 * 1693 1702 * @param pInterface Pointer to the interface structure containing the called function pointer. 1694 1703 * @param pStream Pointer to audio stream. 1695 1704 */ 1696 DECLR3CALLBACKMEMBER(void, pfnStreamPlayEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1697 1698 /** 1699 * Signals the backend that the host wants to begin capturing for this iteration. Optional. 1705 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureBegin, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1706 1707 /** 1708 * Captures (reads from) an audio (input) stream. 1709 * 1710 * @returns VBox status code. 1711 * @param pInterface Pointer to the interface structure containing the called function pointer. 1712 * @param pStream Pointer to audio stream. 1713 * @param pvBuf Buffer where to store read audio data. 1714 * @param uBufSize Size of the audio data buffer (see note below for unit). 1715 * @param puRead Returns number of units read. 1716 * @note The @a uBufSize and @a puRead values are in bytes for non-raw 1717 * layout streams and in frames for raw layout ones. 1718 */ 1719 DECLR3CALLBACKMEMBER(int, pfnStreamCapture, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 1720 void *pvBuf, uint32_t uBufSize, uint32_t *puRead)); 1721 1722 /** 1723 * Signals the backend that the host finished capturing for this iteration. Optional. 1700 1724 * 1701 1725 * @param pInterface Pointer to the interface structure containing the called function pointer. 1702 1726 * @param pStream Pointer to audio stream. 1703 1727 */ 1704 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureBegin, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1705 1706 /**1707 * Captures (reads from) an audio (input) stream.1708 *1709 * @returns VBox status code.1710 * @param pInterface Pointer to the interface structure containing the called function pointer.1711 * @param pStream Pointer to audio stream.1712 * @param pvBuf Buffer where to store read audio data.1713 * @param cxBuf For non-raw layout streams: Size (in bytes) of audio data buffer,1714 * for raw layout streams : Size (in audio frames) of audio data buffer.1715 * @param pcxRead For non-raw layout streams: Returns number of bytes read. Optional.1716 * for raw layout streams : Returns number of frames read. Optional.1717 */1718 DECLR3CALLBACKMEMBER(int, pfnStreamCapture, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cxBuf, uint32_t *pcxRead));1719 1720 /**1721 * Signals the backend that the host finished capturing for this iteration. Optional.1722 *1723 * @param pInterface Pointer to the interface structure containing the called function pointer.1724 * @param pStream Pointer to audio stream.1725 */1726 1728 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)); 1727 1729
Note:
See TracChangeset
for help on using the changeset viewer.