VirtualBox

Changeset 88056 in vbox


Ignore:
Timestamp:
Mar 9, 2021 2:47:45 PM (4 years ago)
Author:
vboxsync
Message:

Audio: Moved some stuff about in PDMAUDIOSTREAM to keep the smaller stuff closer together. bugref:9890

File:
1 edited

Legend:

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

    r88055 r88056  
    11581158typedef struct PDMAUDIOSTREAMIN
    11591159{
     1160    struct
     1161    {
     1162        /** File for writing stream reads. */
     1163        PPDMAUDIOFILE   pFileStreamRead;
     1164        /** File for writing non-interleaved captures. */
     1165        PPDMAUDIOFILE   pFileCaptureNonInterleaved;
     1166    } Dbg;
    11601167#ifdef VBOX_WITH_STATISTICS
    11611168    struct
     
    11691176    } Stats;
    11701177#endif
    1171     struct
    1172     {
    1173         /** File for writing stream reads. */
    1174         PPDMAUDIOFILE   pFileStreamRead;
    1175         /** File for writing non-interleaved captures. */
    1176         PPDMAUDIOFILE   pFileCaptureNonInterleaved;
    1177     } Dbg;
    11781178} PDMAUDIOSTREAMIN;
    11791179/** Pointer to the specifics for an audio input stream. */
     
    11871187typedef struct PDMAUDIOSTREAMOUT
    11881188{
     1189    struct
     1190    {
     1191        /** File for writing stream writes. */
     1192        PPDMAUDIOFILE   pFileStreamWrite;
     1193        /** File for writing stream playback. */
     1194        PPDMAUDIOFILE   pFilePlayNonInterleaved;
     1195    } Dbg;
    11891196#ifdef VBOX_WITH_STATISTICS
    11901197    struct
     
    11981205    } Stats;
    11991206#endif
    1200     struct
    1201     {
    1202         /** File for writing stream writes. */
    1203         PPDMAUDIOFILE   pFileStreamWrite;
    1204         /** File for writing stream playback. */
    1205         PPDMAUDIOFILE   pFilePlayNonInterleaved;
    1206     } Dbg;
    12071207} PDMAUDIOSTREAMOUT;
    12081208/** Pointer to the specifics for an audio output stream. */
     
    12371237typedef struct PDMAUDIOSTREAM
    12381238{
    1239     /** List node. */
     1239    /** List node.
     1240     * @todo s/Node/ListEntry/ */
    12401241    RTLISTNODE              Node;
    1241     /** Name of this stream. */
    1242     char                    szName[64];
     1242    /** @todo add magic (some jazz pianist). */
    12431243    /** Number of references to this stream.
    12441244     *  Only can be destroyed when the reference count reaches 0. */
     
    12631263    /** The host side of the stream. */
    12641264    PDMAUDIOSTREAMCTX       Host;
    1265     /** Union for input/output specifics depending on enmDir. */
    1266     union
    1267     {
    1268         PDMAUDIOSTREAMIN    In;
    1269         PDMAUDIOSTREAMOUT   Out;
    1270     } RT_UNION_NM(u);
    12711265    /** Timestamp (in ns) since last trying to re-initialize.
    12721266     *  Might be 0 if has not been tried yet. */
     
    12861280    /** Size (in bytes) of the backend-specific stream data. */
    12871281    size_t                  cbBackend;
     1282
     1283    /** Name of this stream. */
     1284    char                    szName[64];
     1285
     1286    /** Union for input/output specifics depending on enmDir. */
     1287    union
     1288    {
     1289        PDMAUDIOSTREAMIN    In;
     1290        PDMAUDIOSTREAMOUT   Out;
     1291    } RT_UNION_NM(u);
    12881292} PDMAUDIOSTREAM;
    12891293
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