VirtualBox

Changeset 89489 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jun 3, 2021 11:00:02 PM (4 years ago)
Author:
vboxsync
Message:

Audio: Simplified PDMIAUDIOCONNECTOR::pfnStreamCreate by moving the acquired configuration to the resulting stream (PDMAUDIOSTREAM::Cfg). bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp

    r89487 r89489  
    633633     *        sensible, so I've removed it. */
    634634
    635     uint32_t cFrames = PDMAudioPropsBytesToFrames(&pStream->pStream->Props, cbBuf);
     635    uint32_t cFrames = PDMAudioPropsBytesToFrames(&pStream->pStream->Cfg.Props, cbBuf);
    636636    Assert(cFrames == cbBuf / (sizeof(uint64_t) * 2));
    637637    pDrv->pConsoleVRDPServer->SendAudioSamples(pvBuf, cFrames, uVrdpFormat);
    638638
    639639    Log3Func(("cFramesWritten=%RU32\n", cFrames));
    640     *pcbWritten = PDMAudioPropsFramesToBytes(&pStream->pStream->Props, cFrames);
     640    *pcbWritten = PDMAudioPropsFramesToBytes(&pStream->pStream->Cfg.Props, cFrames);
    641641    Assert(*pcbWritten == cbBuf);
    642642    return VINF_SUCCESS;
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