VirtualBox

Changeset 88464 in vbox


Ignore:
Timestamp:
Apr 12, 2021 11:19:04 AM (4 years ago)
Author:
vboxsync
Message:

Audio: Updated PDMIHOSTAUDIO docs. bugref:9890

File:
1 edited

Legend:

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

    r88452 r88464  
    13091309     * should have already received the PDMAUDIOSTREAMCMD_DRAIN command prior to
    13101310     * this.  It doesn't really matter whether the returned value is 100% correct,
    1311      * as long as it isn't reported as zero too early.
    1312      *
    1313      * Shoul return zero if called on an input stream.
     1311     * as long as it isn't reported as zero too early (and that zero is reported).
     1312     *
     1313     * Is not valid on an input stream, implementions shall assert and return zero.
    13141314     *
    13151315     * @returns Number of pending bytes.
    13161316     * @param   pInterface          Pointer to this interface.
    13171317     * @param   pStream             Pointer to audio stream.
     1318     *
     1319     * @remarks This interface can be omitted if the backend properly implements the
     1320     *          drain operation, i.e. automatically disables the stream when done
     1321     *          draining and ignores any requests to disable the stream while doing
     1322     *          so (there will probably be one right after initiating draining).
    13181323     */
    13191324    DECLR3CALLBACKMEMBER(uint32_t, pfnStreamGetPending, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));
     
    13481353     * @param   pStream     Pointer to audio stream.
    13491354     * @param   pvBuf       Buffer where to store read audio data.
    1350      * @param   uBufSize    Size of the audio data buffer (see note below for unit).
    1351      * @param   puRead      Returns number of units read.
    1352      * @note    The @a uBufSize and @a puRead values are in bytes for non-raw
    1353      *          layout streams and in frames for raw layout ones.
     1355     * @param   cbBuf       Size of the audio data buffer in bytes.
     1356     * @param   pcbRead     Where to return the number of bytes actually captured.
    13541357     */
    13551358    DECLR3CALLBACKMEMBER(int, pfnStreamCapture, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    1356                                                  void *pvBuf, uint32_t uBufSize, uint32_t *puRead));
     1359                                                 void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead));
    13571360
    13581361} PDMIHOSTAUDIO;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette