Changeset 75962 in vbox for trunk/src/VBox/Devices/Audio/HDAStreamMap.h
- Timestamp:
- Dec 5, 2018 9:34:58 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/HDAStreamMap.h
r71754 r75962 1 1 /* $Id$ */ 2 2 /** @file 3 * HDAStreamMap.h - Stream map pingfunctions for HD Audio.3 * HDAStreamMap.h - Stream map functions for HD Audio. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2017 Oracle Corporation7 * Copyright (C) 2017-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 22 22 * Structure for keeping an audio stream data mapping. 23 23 */ 24 typedef struct HDASTREAMMAP PING24 typedef struct HDASTREAMMAP 25 25 { 26 26 /** The stream's layout. */ 27 PDMAUDIOSTREAMLAYOUT enmLayout; 28 /** Number of audio channels in this stream. */ 29 uint8_t cChannels; 30 /** Array of audio channels. */ 31 R3PTRTYPE(PPDMAUDIOSTREAMCHANNEL) paChannels; 27 PDMAUDIOSTREAMLAYOUT enmLayout; 28 uint8_t cbFrameSize; 29 /** Number of mappings in paMappings. */ 30 uint8_t cMappings; 31 uint8_t aPadding[2]; 32 /** Array of stream mappings. 33 * Note: The mappings *must* be layed out in an increasing order, e.g. 34 * how the data appears in the given data block. */ 35 R3PTRTYPE(PPDMAUDIOSTREAMMAP) paMappings; 36 #if HC_ARCH_BITS == 32 37 RTR3PTR Padding1; 38 #endif 39 #ifdef VBOX_WITH_AUDIO_HDA_51_SURROUND 32 40 /** Circular buffer holding for holding audio data for this mapping. */ 33 R3PTRTYPE(PRTCIRCBUF) pCircBuf; 34 } HDASTREAMMAPPING; 35 AssertCompileSizeAlignment(HDASTREAMMAPPING, 8); 36 typedef HDASTREAMMAPPING *PHDASTREAMMAPPING; 41 R3PTRTYPE(PRTCIRCBUF) pCircBuf; 42 #endif 43 } HDASTREAMMAP; 44 AssertCompileSizeAlignment(HDASTREAMMAP, 8); 45 typedef HDASTREAMMAP *PHDASTREAMMAP; 37 46 38 47 /** @name Stream mapping functions. … … 40 49 */ 41 50 #ifdef IN_RING3 42 int hdaR3StreamMapInit(PHDASTREAMMAP PINGpMapping, PPDMAUDIOPCMPROPS pProps);43 void hdaR3StreamMapDestroy(PHDASTREAMMAP PINGpMapping);44 void hdaR3StreamMapReset(PHDASTREAMMAP PINGpMapping);51 int hdaR3StreamMapInit(PHDASTREAMMAP pMapping, PPDMAUDIOPCMPROPS pProps); 52 void hdaR3StreamMapDestroy(PHDASTREAMMAP pMapping); 53 void hdaR3StreamMapReset(PHDASTREAMMAP pMapping); 45 54 #endif /* IN_RING3 */ 46 55 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.