VirtualBox

Changeset 88452 in vbox for trunk/include/VBox


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

Audio: Cleaned up the alsa backend. Removed unused+bogus PDMAUDIOSTREAMCMD_DROP command and mixer duplicate. bugref:9890

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r88433 r88452  
    845845    /** Invalid zero value as per usual (guards against using unintialized values). */
    846846    PDMAUDIOSTREAMCMD_INVALID = 0,
    847     /** Unknown command, do not use.
    848      * @todo r=bird: WTF is this supposed to be?  Is DrvAudio or a device
    849      *       supposed to issue an unknown command to someone?  For conversion
    850      *       mismatches (e.g. mixer), you use the INVALID value. */
    851     PDMAUDIOSTREAMCMD_UNKNOWN,
    852847    /** Enables the stream. */
    853848    PDMAUDIOSTREAMCMD_ENABLE,
     
    864859    PDMAUDIOSTREAMCMD_RESUME,
    865860    /** Drain the stream, that is, play what's in the buffer and then stop.
    866      * The effect on input streams amounts to a stop.
    867861     *
    868862     * A separate DISABLE command will be issued to disable the stream.
     
    871865     *       state.  (EMT cannot wait hundreds of milliseconds of
    872866     *       buffer to finish draining.)
     867     * @note Does not apply to input streams. Backends should refuse such requests.
    873868     * @note No supported by all backends. */
    874869    PDMAUDIOSTREAMCMD_DRAIN,
    875     /** Tells the stream to drop all (buffered) audio data immediately.
    876      *  No supported by all backends. */
    877     PDMAUDIOSTREAMCMD_DROP,
    878870    /** End of valid values. */
    879871    PDMAUDIOSTREAMCMD_END,
  • trunk/include/VBox/vmm/pdmaudioinline.h

    r88300 r88452  
    380380    {
    381381        case PDMAUDIOSTREAMCMD_INVALID: return "Invalid";
    382         case PDMAUDIOSTREAMCMD_UNKNOWN: return "Unknown";
    383382        case PDMAUDIOSTREAMCMD_ENABLE:  return "Enable";
    384383        case PDMAUDIOSTREAMCMD_DISABLE: return "Disable";
     
    386385        case PDMAUDIOSTREAMCMD_RESUME:  return "Resume";
    387386        case PDMAUDIOSTREAMCMD_DRAIN:   return "Drain";
    388         case PDMAUDIOSTREAMCMD_DROP:    return "Drop";
    389387        case PDMAUDIOSTREAMCMD_END:
    390388        case PDMAUDIOSTREAMCMD_32BIT_HACK:
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