VirtualBox

Changeset 88718 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 26, 2021 9:21:24 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144036
Message:

Audio: Changed PPDMAUDIOBACKENDSTREAM from opaque to a common base-structure which the backends can extend with their own data. bugref:9890

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioRec.cpp

    r88534 r88718  
    246246typedef struct AVRECSTREAM
    247247{
     248    /** Common part. */
     249    PDMAUDIOBACKENDSTREAM   Core;
    248250    /** The stream's acquired configuration. */
    249     PDMAUDIOSTREAMCFG    Cfg;
     251    PDMAUDIOSTREAMCFG       Cfg;
    250252    /** (Audio) frame buffer. */
    251     PRTCIRCBUF           pCircBuf;
     253    PRTCIRCBUF              pCircBuf;
    252254    /** Pointer to sink to use for writing. */
    253     PAVRECSINK           pSink;
     255    PAVRECSINK              pSink;
    254256    /** Last encoded PTS (in ms). */
    255     uint64_t             uLastPTSMs;
     257    uint64_t                uLastPTSMs;
    256258    /** Temporary buffer for the input (source) data to encode. */
    257     void                *pvSrcBuf;
     259    void                   *pvSrcBuf;
    258260    /** Size (in bytes) of the temporary buffer holding the input (source) data to encode. */
    259     size_t               cbSrcBuf;
     261    size_t                  cbSrcBuf;
    260262    /** Temporary buffer for the encoded output (destination) data. */
    261     void                *pvDstBuf;
     263    void                   *pvDstBuf;
    262264    /** Size (in bytes) of the temporary buffer holding the encoded output (destination) data. */
    263     size_t               cbDstBuf;
     265    size_t                  cbDstBuf;
    264266} AVRECSTREAM, *PAVRECSTREAM;
    265267
  • trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp

    r88534 r88718  
    4848typedef struct VRDESTREAM
    4949{
     50    /** Common part. */
     51    PDMAUDIOBACKENDSTREAM   Core;
    5052    /** The stream's acquired configuration. */
    51     PDMAUDIOSTREAMCFG   Cfg;
     53    PDMAUDIOSTREAMCFG       Cfg;
    5254    union
    5355    {
     
    5557        {
    5658            /** Circular buffer for holding the recorded audio frames from the host. */
    57             PRTCIRCBUF  pCircBuf;
     59            PRTCIRCBUF      pCircBuf;
    5860        } In;
    5961    };
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