VirtualBox

Changeset 54967 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 26, 2015 3:26:52 PM (10 years ago)
Author:
vboxsync
Message:

DrvHostNullAudio.cpp: Always pretend consuming all output samples available at a time.

File:
1 edited

Legend:

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

    r54491 r54967  
    4242 */
    4343#include "DrvAudio.h"
     44#include "AudioMixBuffer.h"
     45
    4446#include "VBoxDD.h"
    4547#include "vl_vbox.h"
     
    116118    {
    117119        if (pcSamples)
    118             *pcSamples = 256;
     120            *pcSamples = _1K;
    119121    }
    120122
     
    133135    {
    134136        if (pcSamples)
    135             *pcSamples = 256;
     137            *pcSamples = _1K;
    136138    }
    137139
     
    149151                                                 uint32_t *pcSamplesPlayed)
    150152{
     153    /* Always pretend consuming all samples available at this time. */
     154    const uint32_t cSamplesPlayed = audioMixBufSize(&pHstStrmOut->MixBuf);
     155    audioMixBufFinish(&pHstStrmOut->MixBuf, cSamplesPlayed);
     156
    151157    if (pcSamplesPlayed)
    152         *pcSamplesPlayed = UINT32_MAX;
     158        *pcSamplesPlayed = cSamplesPlayed;
    153159
    154160    return VINF_SUCCESS;
     
    158164                                                   uint32_t *pcSamplesCaptured)
    159165{
     166    /* Never capture anything. */
    160167    if (pcSamplesCaptured)
    161168        *pcSamplesCaptured = 0;
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