VirtualBox

Ignore:
Timestamp:
Nov 11, 2019 4:00:31 PM (5 years ago)
Author:
vboxsync
Message:

Devices: Use new volatile SSM getters and enum macros. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r81591 r81765  
    18301830 * Worker for sb16LoadExec.
    18311831 */
    1832 static int sb16Load(PSSMHANDLE pSSM, PSB16STATE pThis)
     1832static int sb16Load(PCPDMDEVHLPR3 pHlp, PSSMHANDLE pSSM, PSB16STATE pThis)
    18331833{
    18341834    SSMR3GetS32(pSSM, &pThis->irq);
     
    18431843    SSMR3GetS32(pSSM, &pThis->fmt_bits);
    18441844
    1845     SSMR3GetU32(pSSM, (uint32_t *)&pThis->fmt);
     1845    PDMDEVHLP_SSM_GET_ENUM32_RET(pHlp, pSSM, pThis->fmt, PDMAUDIOFMT);
    18461846
    18471847    SSMR3GetS32(pSSM, &pThis->dma_auto);
     
    19431943        return VINF_SUCCESS;
    19441944
    1945     return sb16Load(pSSM, pThis);
     1945    return sb16Load(pDevIns->pHlpR3, pSSM, pThis);
    19461946}
    19471947
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette