VirtualBox

Changeset 62580 in vbox for trunk/include


Ignore:
Timestamp:
Jul 27, 2016 9:52:15 AM (8 years ago)
Author:
vboxsync
Message:

Audio: Initial commit of audio debug backend. This can dump the output streams to single .WAV files and also will later act as an input mockup object for testing input (capturing) audio data.

File:
1 edited

Legend:

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

    r62576 r62580  
    488488    uint8_t                   cShift;
    489489} PDMAUDIOMIXBUF;
     490
     491typedef uint32_t PDMAUDIOFILEFLAGS;
     492
     493/* No flags defined. */
     494#define PDMAUDIOFILEFLAG_NONE            0
     495
     496/**
     497 * Audio file types.
     498 */
     499typedef enum PDMAUDIOFILETYPE
     500{
     501    /** Unknown type, do not use. */
     502    PDMAUDIOFILETYPE_UNKNOWN = 0,
     503    /** Wave (.WAV) file. */
     504    PDMAUDIOFILETYPE_WAV
     505} PDMAUDIOFILETYPE;
     506
     507/**
     508 * Structure for an audio file handle.
     509 */
     510typedef struct PDMAUDIOFILE
     511{
     512    /** Type of the audio file. */
     513    PDMAUDIOFILETYPE enmType;
     514    /** File name. */
     515    char             szName[255];
     516    /** Actual file handle. */
     517    RTFILE           hFile;
     518    /** Data needed for the specific audio file type implemented.
     519     *  Optional, can be NULL. */
     520    void            *pvData;
     521    /** Data size (in bytes). */
     522    size_t           cbData;
     523} PDMAUDIOFILE, *PPDMAUDIOFILE;
    490524
    491525/** Stream status flag. To be used with PDMAUDIOSTRMSTS_FLAG_ flags. */
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