VirtualBox

Changeset 88255 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 23, 2021 8:43:58 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143458
Message:

DrvAudio,DrvAudioVRDE: Refactoring drvAudioStreamPlay (no actual change, just different code structure). bugref:9890

File:
1 edited

Legend:

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

    r88253 r88255  
    507507static DECLCALLBACK(uint32_t) drvAudioVrdeHA_StreamGetWritable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
    508508{
    509     PDRVAUDIOVRDE pDrv        = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio);
    510     PVRDESTREAM   pStreamVRDE = (PVRDESTREAM)pStream;
    511 
    512     PPDMAUDIOPCMPROPS pProps  = &pStreamVRDE->pCfg->Props;
    513 
    514     RT_NOREF(pDrv,  pProps);
    515 
    516     /* Return frames instead of bytes here
    517      * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout). */
     509    PDRVAUDIOVRDE pDrv = RT_FROM_MEMBER(pInterface, DRVAUDIOVRDE, IHostAudio);
     510    RT_NOREF(pStream);
     511
     512    /** @todo Find some sane value here. We probably need a VRDE API VRDE to specify this. */
    518513    if (pDrv->cClients)
    519         return _16K; /** @todo Find some sane value here. We probably need a VRDE API VRDE to specify this. */
    520 
     514        return _16K * sizeof(PDMAUDIOFRAME);
    521515    return 0;
    522516}
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