VirtualBox

Changeset 65565 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 1, 2017 2:11:10 PM (8 years ago)
Author:
vboxsync
Message:

Audio: Make use of pvBuf/cbBuf parameters in PDMIHOSTAUDIO::pfnStreamPlay() and PDMIHOSTAUDIO::pfnStreamCapture() to further abstract the backends from the audio connector. The backends now won't be allowed to operate on the audio connector's mixing buffers directly anymore that way.

File:
1 edited

Legend:

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

    r65100 r65565  
    441441} PDMAUDIOPCMPROPS, *PPDMAUDIOPCMPROPS;
    442442
     443/** Converts (audio) samples to bytes. */
     444#define PDMAUDIOPCMPROPS_S2B(pProps, samples) ((samples) << (pProps)->cShift)
     445/** Converts bytes to (audio) samples. */
     446#define PDMAUDIOPCMPROPS_B2S(pProps, cb)  (cb >> (pProps)->cShift)
     447
    443448/**
    444449 * Audio volume parameters.
     
    11681173     * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    11691174     * @param   pStream             Pointer to audio stream.
    1170      * @param   pvBuf               Pointer to audio data buffer to play.  Currently not used and must be NULL.
    1171      * @param   cbBuf               Size (in bytes) of audio data buffer.  Currently not used and must be 0.
     1175     * @param   pvBuf               Pointer to audio data buffer to play.
     1176     * @param   cbBuf               Size (in bytes) of audio data buffer.
    11721177     * @param   pcbWritten          Returns number of bytes written.  Optional.
    11731178     */
     
    11801185     * @param   pInterface          Pointer to the interface structure containing the called function pointer.
    11811186     * @param   pStream             Pointer to audio stream.
    1182      * @param   pvBuf               Buffer where to store read audio data.  Currently not used and must be NULL.
    1183      * @param   cbBuf               Size (in bytes) of buffer.  Currently not used and must be 0.
     1187     * @param   pvBuf               Buffer where to store read audio data.
     1188     * @param   cbBuf               Size (in bytes) of buffer.
    11841189     * @param   pcbRead             Returns number of bytes read.  Optional.
    11851190     */
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