Changeset 75962 in vbox for trunk/include
- Timestamp:
- Dec 5, 2018 9:34:58 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r74507 r75962 471 471 /** Circular buffer for the channel data. */ 472 472 PRTCIRCBUF pCircBuf; 473 /** Amount of audio data (in bytes) acquired for reading. */ 473 474 size_t cbAcq; 474 475 /** Channel data flags. */ … … 477 478 478 479 /** 479 * Structure for a single channel of an audio stream. 480 * An audio stream consists of one or multiple channels, 480 * Enumeration for standard speaker channel IDs. 481 * This can cover up to 11.0 surround sound. 482 * 483 * Note: Any of those channels can be marked / used as the LFE channel (played through the subwoofer). 484 */ 485 typedef enum PDMAUDIOSTREAMCHANNELID 486 { 487 /** Unknown / not set channel ID. */ 488 PDMAUDIOSTREAMCHANNELID_UNKNOWN = 0, 489 /** Front left channel. */ 490 PDMAUDIOSTREAMCHANNELID_FRONT_LEFT, 491 /** Front right channel. */ 492 PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT, 493 /** Front center channel. */ 494 PDMAUDIOSTREAMCHANNELID_FRONT_CENTER, 495 /** Low frequency effects (subwoofer) channel. */ 496 PDMAUDIOSTREAMCHANNELID_LFE, 497 /** Rear left channel. */ 498 PDMAUDIOSTREAMCHANNELID_REAR_LEFT, 499 /** Rear right channel. */ 500 PDMAUDIOSTREAMCHANNELID_REAR_RIGHT, 501 /** Front left of center channel. */ 502 PDMAUDIOSTREAMCHANNELID_FRONT_LEFT_OF_CENTER, 503 /** Front right of center channel. */ 504 PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT_OF_CENTER, 505 /** Rear center channel. */ 506 PDMAUDIOSTREAMCHANNELID_REAR_CENTER, 507 /** Side left channel. */ 508 PDMAUDIOSTREAMCHANNELID_SIDE_LEFT, 509 /** Side right channel. */ 510 PDMAUDIOSTREAMCHANNELID_SIDE_RIGHT, 511 /** Left height channel. */ 512 PDMAUDIOSTREAMCHANNELID_LEFT_HEIGHT, 513 /** Right height channel. */ 514 PDMAUDIOSTREAMCHANNELID_RIGHT_HEIGHT, 515 /** Hack to blow the type up to 32-bit. */ 516 PDMAUDIOSTREAMCHANNELID_32BIT_HACK = 0x7fffffff 517 } PDMAUDIOSTREAMCHANNELID; 518 519 /** 520 * Structure for mapping a single (mono) channel or dual (stereo) channels of an audio stream (aka stream profile). 521 * 522 * An audio stream consists of one or multiple channels (e.g. 1 for mono, 2 for stereo), 481 523 * depending on the configuration. 482 524 */ 483 typedef struct PDMAUDIOSTREAMCHANNEL 484 { 485 /** Channel ID. */ 486 uint8_t uChannel; 525 typedef struct PDMAUDIOSTREAMMAP 526 { 527 /** Array of channel IDs being handled. 528 * Note: The first (zero-based) index specifies the leftmost channel. */ 529 PDMAUDIOSTREAMCHANNELID aID[2]; 487 530 /** Step size (in bytes) to the channel's next frame. */ 488 size_t cbStep;531 size_t cbSize; 489 532 /** Frame size (in bytes) of this channel. */ 490 size_t cbFrame;533 size_t cbFrame; 491 534 /** Offset (in bytes) to first frame in the data block. */ 492 size_t cbFirst;493 /** Currente offset (in bytes) in the data stream. */494 size_t cbOff;535 size_t cbFirst; 536 /** Offset (in bytes) to the next frame in the data block. */ 537 size_t cbOff; 495 538 /** Associated data buffer. */ 496 PDMAUDIOSTREAMCHANNELDATA Data;497 } PDMAUDIOSTREAM CHANNEL, *PPDMAUDIOSTREAMCHANNEL;539 PDMAUDIOSTREAMCHANNELDATA Data; 540 } PDMAUDIOSTREAMMAP, *PPDMAUDIOSTREAMMAP; 498 541 499 542 /**
Note:
See TracChangeset
for help on using the changeset viewer.