VirtualBox

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


Ignore:
Timestamp:
Jul 27, 2017 8:15:43 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117212
Message:

Audio: Renamed audio samples to audio frame because that's what they really are. No actual code changes.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

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

    r68085 r68132  
    8686
    8787/* Sanity. */
    88 AssertCompileSize(PDMAUDIOSAMPLE, sizeof(int64_t) * 2 /* st_sample_t using by VRDP server */);
     88AssertCompileSize(PDMAUDIOFRAME, sizeof(int64_t) * 2 /* st_sample_t using by VRDP server */);
    8989
    9090static int vrdeCreateStreamIn(PVRDESTREAM pStreamVRDE, PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     
    105105             */
    106106            pCfgAcq->enmLayout         = PDMAUDIOSTREAMLAYOUT_RAW;
    107             pCfgAcq->cSampleBufferHint = pStreamVRDE->In.csMax;
     107            pCfgAcq->cFrameBufferHint = pStreamVRDE->In.csMax;
    108108        }
    109109    }
     
    127127         */
    128128        pCfgAcq->enmLayout         = PDMAUDIOSTREAMLAYOUT_RAW;
    129         pCfgAcq->cSampleBufferHint = _4K; /** @todo Make this configurable. */
     129        pCfgAcq->cFrameBufferHint = _4K; /** @todo Make this configurable. */
    130130    }
    131131
     
    292292    int rc = VINF_SUCCESS;
    293293
    294     PPDMAUDIOSAMPLE paSampleBuf = (PPDMAUDIOSAMPLE)pvBuf;
     294    PPDMAUDIOFRAME paSampleBuf = (PPDMAUDIOFRAME)pvBuf;
    295295    AssertPtr(paSampleBuf);
    296296
     
    501501        /* Return samples instead of bytes here
    502502         * (since we specified PDMAUDIOSTREAMLAYOUT_RAW as the audio data layout). */
    503         return (uint32_t)PDMAUDIOSTREAMCFG_B2S(pStreamVRDE->pCfg, RTCircBufUsed(pStreamVRDE->In.pCircBuf));
     503        return (uint32_t)PDMAUDIOSTREAMCFG_B2F(pStreamVRDE->pCfg, RTCircBufUsed(pStreamVRDE->In.pCircBuf));
    504504    }
    505505
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r68085 r68132  
    375375
    376376        if (pCfgAcq)
    377             pCfgAcq->cSampleBufferHint = 0;
     377            pCfgAcq->cFrameBufferHint = 0;
    378378
    379379        LogRel2(("VideoRec: Support for surround audio not implemented yet\n"));
     
    409409            pCfgAcq->Props.uHz         = pSink->Codec.Parms.uHz;
    410410            pCfgAcq->Props.cShift      = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cBits, pCfgAcq->Props.cChannels);
    411             pCfgAcq->cSampleBufferHint = _4K; /** @todo Make this configurable. */
     411            pCfgAcq->cFrameBufferHint = _4K; /** @todo Make this configurable. */
    412412        }
    413413    }
     
    586586
    587587    const uint32_t csFrame = pSink->Codec.Opus.csFrame;
    588     const uint32_t cbFrame = PDMAUDIOSTREAMCFG_S2B(pStreamAV->pCfg, csFrame);
     588    const uint32_t cbFrame = PDMAUDIOSTREAMCFG_F2B(pStreamAV->pCfg, csFrame);
    589589
    590590    while (RTCircBufUsed(pCircBuf) >= cbFrame)
Note: See TracChangeset for help on using the changeset viewer.

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