VirtualBox

Changeset 59987 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 11, 2016 12:03:37 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105954
Message:

Audio: Decoupled backend sinks and sources from the maximum of concurrent streams a backend can handle. Also, added some more enumeration code to the ALSA, PulseAudio and OSS backends, which later also can be used for configuration change callbacks. Some function renaming.

File:
1 edited

Legend:

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

    r59890 r59987  
    6464
    6565/**
    66  * Audio configuration of a certain backend.
     66 * Audio configuration of a certain host backend.
    6767 */
    6868typedef struct PDMAUDIOBACKENDCFG
    6969{
     70    /** Size (in bytes) of the host backend's audio output stream structure. */
    7071    size_t   cbStreamOut;
     72    /** Size (in bytes) of the host backend's audio input stream structure. */
    7173    size_t   cbStreamIn;
    72     uint32_t cMaxHstStrmsOut;
    73     uint32_t cMaxHstStrmsIn;
     74    /** Number of valid output sinks found on the host. */
     75    uint8_t  cSinks;
     76    /** Number of valid input sources found on the host. */
     77    uint8_t  cSources;
     78    /** Number of concurrent output streams supported on the host.
     79     *  UINT32_MAX for unlimited concurrent streams. */
     80    uint32_t cMaxStreamsOut;
     81    /** Number of concurrent input streams supported on the host.
     82     *  UINT32_MAX for unlimited concurrent streams. */
     83    uint32_t cMaxStreamsIn;
    7484} PDMAUDIOBACKENDCFG, *PPDMAUDIOBACKENDCFG;
    7585
    7686/**
    77  * An audio sample. At the moment stereo (left + right channels) only.
    78  * @todo Replace this with a more generic union
    79  *       which then also could handle 2.1 or 5.1 sound.
     87 * A single audio sample, representing left and right channels (stereo).
    8088 */
    8189typedef struct PDMAUDIOSAMPLE
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