Changeset 82463 in vbox for trunk/src/VBox
- Timestamp:
- Dec 6, 2019 2:29:16 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r82451 r82463 360 360 #endif 361 361 /** The stream's current configuration. */ 362 PDMAUDIOSTREAMCFG Cfg; //+104 363 uint32_t Padding2; 362 PDMAUDIOSTREAMCFG Cfg; //+108 364 363 #ifdef VBOX_WITH_AUDIO_AC97_ASYNC_IO 365 364 /** Asynchronous I/O state members. */ -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r82458 r82463 951 951 AssertPtrReturnVoid(pCfg); 952 952 953 RT_ BZERO(pCfg, sizeof(PDMAUDIOSTREAMCFG));953 RT_ZERO(*pCfg); 954 954 955 955 pCfg->Backend.cFramesPreBuffering = UINT32_MAX; /* Explicitly set to "undefined". */ -
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r82255 r82463 114 114 { 115 115 /** The stream's acquired configuration. */ 116 PDMAUDIOSTREAMCFG Cfg;116 PDMAUDIOSTREAMCFG Cfg; 117 117 /** Buffer alignment. */ 118 uint8_t uAlign;118 uint8_t uAlign; 119 119 /** Whether this stream is in an enable state on the DirectSound side. */ 120 bool fEnabled; 120 bool fEnabled; 121 bool afPadding[2]; 122 /** Size (in bytes) of the DirectSound buffer. 123 * @note This in *not* the size of the circular buffer above! */ 124 DWORD cbBufSize; 121 125 /** The stream's critical section for synchronizing access. */ 122 RTCRITSECT CritSect;126 RTCRITSECT CritSect; 123 127 /** The internal playback / capturing buffer. */ 124 PRTCIRCBUF pCircBuf; 125 /** Size (in bytes) of the DirectSound buffer. 126 * Note: This in *not* the size of the circular buffer above! */ 127 DWORD cbBufSize; 128 PRTCIRCBUF pCircBuf; 128 129 union 129 130 { -
trunk/src/VBox/Devices/Audio/HDAStream.h
r82450 r82463 166 166 * Should match SDFMT. */ 167 167 PDMAUDIOSTREAMCFG Cfg; 168 uint32_t Padding4;169 168 /** Timestamp (in ns) of last stream update. */ 170 169 uint64_t tsLastUpdateNs; -
trunk/src/VBox/Devices/Audio/HDAStreamMap.cpp
r82252 r82463 156 156 PPDMAUDIOSTREAMMAP pMapLR = &pMap->paMappings[0]; 157 157 158 pMapLR->a ID[0]= PDMAUDIOSTREAMCHANNELID_FRONT_LEFT;159 pMapLR->a ID[1]= PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT;160 pMapLR->cbFrame = pProps->cbSample * pProps->cChannels;161 pMapLR->cbStep = pProps->cbSample * 2 /* Front left + Front right channels */;162 pMapLR->offFirst = 0;163 pMapLR->offNext = pMapLR->offFirst;158 pMapLR->aenmIDs[0] = PDMAUDIOSTREAMCHANNELID_FRONT_LEFT; 159 pMapLR->aenmIDs[1] = PDMAUDIOSTREAMCHANNELID_FRONT_RIGHT; 160 pMapLR->cbFrame = pProps->cbSample * pProps->cChannels; 161 pMapLR->cbStep = pProps->cbSample * 2 /* Front left + Front right channels */; 162 pMapLR->offFirst = 0; 163 pMapLR->offNext = pMapLR->offFirst; 164 164 165 165 rc = hdaR3StreamChannelDataInit(&pMapLR->Data, PDMAUDIOSTREAMCHANNELDATA_FLAGS_NONE);
Note:
See TracChangeset
for help on using the changeset viewer.