VirtualBox

Changeset 58344 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 20, 2015 3:54:04 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103544
Message:

Audio: Fixed suspending/resuming streams on VM pause/unpause.

File:
1 edited

Legend:

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

    r58110 r58344  
    175175    /** Disables the stream. */
    176176    PDMAUDIOSTREAMCMD_DISABLE,
     177    /** Pauses the stream. */
     178    PDMAUDIOSTREAMCMD_PAUSE,
     179    /** Resumes the stream. */
     180    PDMAUDIOSTREAMCMD_RESUME,
    177181    /** Hack to blow the type up to 32-bit. */
    178182    PDMAUDIOSTREAMCMD_32BIT_HACK = 0x7fffffff
     
    300304} PDMAUDIOMIXBUF;
    301305
     306/** Stream status flag. To be used with PDMAUDIOSTRMSTS_FLAG_ flags. */
     307typedef uint32_t PDMAUDIOSTRMSTS;
     308
     309/** No flags being set. */
     310#define PDMAUDIOSTRMSTS_FLAG_NONE            0
     311/** Whether this stream General Enabled or disabled flag. */
     312#define PDMAUDIOSTRMSTS_FLAG_ENABLED         RT_BIT_32(0)
     313/** Whether this stream has been paused or not. This also implies
     314 *  that this is an enabled stream! */
     315#define PDMAUDIOSTRMSTS_FLAG_PAUSED          RT_BIT_32(1)
     316/** Whether this stream was marked as being disabled
     317 *  but there are still associated guest output streams
     318 *  which rely on its data. */
     319#define PDMAUDIOSTRMSTS_FLAG_PENDING_DISABLE RT_BIT_32(2)
     320/** Validation mask. */
     321#define PDMAUDIOSTRMSTS_VALID_MASK           UINT32_C(0x00000007)
     322
    302323/**
    303324 * Represents an audio input on the host of a certain
     
    316337    /** PCM properties. */
    317338    PDMPCMPROPS            Props;
    318     /** Whether this input is enabled or not. */
    319     bool                   fEnabled;
     339    /** Stream status flag. */
     340    PDMAUDIOSTRMSTS        fStatus;
    320341    /** This stream's mixing buffer. */
    321342    PDMAUDIOMIXBUF         MixBuf;
     
    337358    /** Stream properites. */
    338359    PDMPCMPROPS            Props;
    339     /** Enabled or disabled flag. */
    340     bool                   fEnabled;
    341     /** Whether this stream was marked as being disabled
    342      *  but there are still associated guest output streams
    343      *  which rely on its data. */
    344     bool                   fPendingDisable;
     360    /** Stream status flag. */
     361    PDMAUDIOSTRMSTS        fStatus;
    345362    /** This stream's mixing buffer. */
    346363    PDMAUDIOMIXBUF         MixBuf;
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