VirtualBox

Ignore:
Timestamp:
May 12, 2016 1:12:20 PM (9 years ago)
Author:
vboxsync
Message:

Audio/HDA:

  • Lowered timer to 100Hz and start/stop it only if needed. Should improve overall performance.
  • More work on dynamic stream assignments (SDI/SDO select) by the guest -- should make more Linux guests compatible with HDA.
File:
1 edited

Legend:

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

    r60934 r60941  
    312312    }
    313313
    314     LogFlowFunc(("Sink=%s, Cmd=%ld, rc=%Rrc\n", pSink->pszName, enmCmd, rc));
     314    LogFlowFunc(("%s: enmCmd=%ld, rc=%Rrc\n", pSink->pszName, enmCmd, rc));
    315315    return rc;
    316316}
     
    342342
    343343    RTMemFree(pSink);
     344}
     345
     346/**
     347 * Returns the sink's mixing direction.
     348 *
     349 * @returns Mixing direction.
     350 * @param   pSink           Sink to return direction for.
     351 *
     352 * @remark
     353 */
     354AUDMIXSINKDIR AudioMixerSinkGetDir(PAUDMIXSINK pSink)
     355{
     356    AssertPtrReturn(pSink, AUDMIXSINKDIR_UNKNOWN);
     357    return pSink->enmDir;
    344358}
    345359
     
    519533void AudioMixerSinkTimerUpdate(PAUDMIXSINK pSink, uint64_t cTicksPerSec, uint64_t cTicksElapsed, uint32_t *pcbData)
    520534{
     535    AssertPtrReturnVoid(pSink);
     536    /* pcbData is optional. */
     537
    521538    uint32_t cSamplesMin  = (uint32_t)((2 * cTicksElapsed * pSink->PCMProps.uHz + cTicksPerSec) / cTicksPerSec / 2);
    522539    uint32_t cbSamplesMin = cSamplesMin << pSink->PCMProps.cShift;
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