VirtualBox

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


Ignore:
Timestamp:
Nov 27, 2019 10:09:17 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135072
Message:

vmm/pdmaudioifs.h: The prefix 'cf' reads 'count-of-flags', so if you want 'count-of-frames' in a non-confusing way you have to spell it out. The prefix 'cx' means 'count-of-x-coordinates', i.e. width in pixels, and is not in any way suited to combine 'cb' and 'cFrames' in this context (PDM). bugref:9218

File:
1 edited

Legend:

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

    r82252 r82254  
    677677        /** Scheduling hint set by the device emulation about when this stream is being served on average (in ms).
    678678         *  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;
    680680    } Device;
    681681    /**
     
    690690         *  This value reflects the number of audio frames in between each hardware interrupt on the
    691691         *  backend (host) side. 0 if not set / available by the backend. */
    692         uint32_t            cfPeriod;
    693         /** (Ring) buffer size (in audio frames). Often is a multiple of cfPeriod.
     692        uint32_t            cFramesPeriod;
     693        /** (Ring) buffer size (in audio frames). Often is a multiple of cFramesPeriod.
    694694         *  0 if not set / available by the backend. */
    695         uint32_t            cfBufferSize;
     695        uint32_t            cFramesBufferSize;
    696696        /** Pre-buffering size (in audio frames). Frames needed in buffer before the stream becomes active (pre buffering).
    697697         *  The bigger this value is, the more latency for the stream will occur.
    698698         *  0 if not set / available by the backend. UINT32_MAX if not defined (yet). */
    699         uint32_t            cfPreBuf;
     699        uint32_t            cFramesPreBuffering;
    700700    } Backend;
    701701    /** Friendly name of the stream. */
     
    16781678     *
    16791679     * @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     *
    16801694     * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    16811695     * @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.
    16921701     *
    16931702     * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    16941703     * @param   pStream             Pointer to audio stream.
    16951704     */
    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.
    17001724     *
    17011725     * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    17021726     * @param   pStream             Pointer to audio stream.
    17031727     */
    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      */
    17261728    DECLR3CALLBACKMEMBER(void, pfnStreamCaptureEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));
    17271729
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