Changeset 71747 in vbox for trunk/src/VBox
- Timestamp:
- Apr 8, 2018 2:34:55 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r71746 r71747 212 212 213 213 /* mixer state */ 214 int mixer_nreg;214 uint8_t mixer_nreg; 215 215 uint8_t mixer_regs[256]; 216 216 } SB16STATE, *PSB16STATE; … … 1548 1548 } 1549 1549 1550 static int mixer_write_indexb(PSB16STATE pThis, uint 32_t val)1550 static int mixer_write_indexb(PSB16STATE pThis, uint8_t val) 1551 1551 { 1552 1552 pThis->mixer_nreg = val; … … 2176 2176 SSMR3GetS32(pSSM, &pThis->csp_reg83w); 2177 2177 2178 SSMR3GetMem(pSSM, pThis->in2_data, sizeof 2179 SSMR3GetMem(pSSM, pThis->out_data, sizeof 2178 SSMR3GetMem(pSSM, pThis->in2_data, sizeof(pThis->in2_data)); 2179 SSMR3GetMem(pSSM, pThis->out_data, sizeof(pThis->out_data)); 2180 2180 SSMR3GetU8 (pSSM, &pThis->test_reg); 2181 2181 SSMR3GetU8 (pSSM, &pThis->last_read_byte); … … 2187 2187 SSMR3GetS32(pSSM, &pThis->align); 2188 2188 2189 SSMR3GetS32(pSSM, &pThis->mixer_nreg); 2190 SSMR3GetMem(pSSM, pThis->mixer_regs, 256); 2189 int32_t mixer_nreg = 0; 2190 int rc = SSMR3GetS32(pSSM, &mixer_nreg); 2191 AssertRCReturn(rc, rc); 2192 pThis->mixer_nreg = (uint8_t)mixer_nreg; 2193 rc = SSMR3GetMem(pSSM, pThis->mixer_regs, 256); 2194 AssertRCReturn(rc, rc); 2191 2195 2192 2196 #if 0
Note:
See TracChangeset
for help on using the changeset viewer.