Changeset 88951 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- May 8, 2021 11:52:18 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144286
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r88950 r88951 1413 1413 PAC97STATER3 const pThisCC = PDMDEVINS_2_DATA_CC(pDevIns, PAC97STATER3); 1414 1414 PAC97STREAMR3 const pStreamCC = (PAC97STREAMR3)pvUser; 1415 uintptr_t const idxStream = pStreamCC - &pThisCC->aStreams[0];1416 Assert(pS treamCC->u8SD == idxStream);1417 Assert(pSink == ichac97R3IndexToSink(pThisCC, (uint8_t)idxStream));1415 Assert(pStreamCC->u8SD == (uintptr_t)(pStreamCC - &pThisCC->aStreams[0])); 1416 Assert(pSink == ichac97R3IndexToSink(pThisCC, pStreamCC->u8SD)); 1417 RT_NOREF(pThisCC); 1418 1418 1419 1419 /* … … 4029 4029 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatBytesWritten, STAMTYPE_COUNTER, "BytesWritten", STAMUNIT_BYTES, "Bytes written to AC97 emulation."); 4030 4030 # endif 4031 for (unsigned idxStream = 0; idxStream < RT_ELEMENTS(s_apszNames); idxStream++) 4032 { 4033 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.offRead, STAMTYPE_U64, STAMVISIBILITY_USED, STAMUNIT_BYTES, 4034 "Virtual internal buffer read position.", "Stream%u/offRead", idxStream); 4035 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.offWrite, STAMTYPE_U64, STAMVISIBILITY_USED, STAMUNIT_BYTES, 4036 "Virtual internal buffer write position.", "Stream%u/offWrite", idxStream); 4037 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatDmaBufSize, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_BYTES, 4038 "Size of the internal DMA buffer.", "Stream%u/DMABufSize", idxStream); 4039 PDMDevHlpSTAMRegisterF(pDevIns, &pThisCC->aStreams[idxStream].State.StatDmaBufUsed, STAMTYPE_U32, STAMVISIBILITY_USED, STAMUNIT_BYTES, 4040 "Number of bytes used in the internal DMA buffer.", "Stream%u/DMABufUsed", idxStream); 4041 4042 } 4031 4043 4032 4044 LogFlowFuncLeaveRC(VINF_SUCCESS);
Note:
See TracChangeset
for help on using the changeset viewer.