VirtualBox

Changeset 76777 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jan 11, 2019 1:53:44 PM (6 years ago)
Author:
vboxsync
Message:

Audio/Mixer: Removed VBOX_AUDIO_MIXER_WITH_MIXBUF define, as this is the default anyway since quite a while.

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r76553 r76777  
    770770        case AUDMIXSINKCMD_DROP:
    771771        {
    772 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF
    773772            AudioMixBufReset(&pSink->MixBuf);
    774 #endif
     773
    775774            /* Clear dirty bit, keep others. */
    776775            pSink->fStatus &= ~AUDMIXSINK_STS_DIRTY;
     
    955954        && !(pSink->fStatus & AUDMIXSINK_STS_PENDING_DISABLE))
    956955    {
    957 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF
    958956        cbWritable = AudioMixBufFreeBytes(&pSink->MixBuf);
    959 #else
    960         /* Return how much data we expect since the last write. */
    961         cbWritable = DrvAudioHlpMilliToBytes(10 /* ms */, &pSink->PCMProps); /** @todo Make this configurable! */
    962 #endif
    963957    }
    964958
     
    13141308    LogFunc(("[%s]\n", pSink->pszName));
    13151309
    1316 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF
    13171310    AudioMixBufReset(&pSink->MixBuf);
    1318 #endif
    13191311
    13201312    /* Update last updated timestamp. */
     
    14221414                 pSink->pszName, pSink->PCMProps.cBytes * 8, pSink->PCMProps.cChannels, pSink->PCMProps.uHz));
    14231415
    1424 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF
    14251416    /* Also update the sink's mixing buffer format. */
    14261417    AudioMixBufDestroy(&pSink->MixBuf);
     
    14351426        }
    14361427    }
    1437 #endif /* VBOX_AUDIO_MIXER_WITH_MIXBUF */
    14381428
    14391429#ifdef VBOX_AUDIO_MIXER_DEBUG
     
    19681958            if (cbWrittenBuf) /* Update the mixer stream's last written time stamp. */
    19691959                pMixStream->tsLastReadWrittenNs = RTTimeNanoTS();
     1960
     1961            Log3Func(("[%s] Mixer stream '%s' -> cbWrittenBuf=%RU32\n", pSink->pszName, pMixStream->pszName, cbWrittenBuf));
    19701962        }
    19711963    }
  • trunk/src/VBox/Devices/Audio/AudioMixer.h

    r76565 r76777  
    2929
    3030#include <VBox/vmm/pdmaudioifs.h>
    31 
    32 /* Use a mixer sink's mixing buffer for multiplexing. */
    33 #define VBOX_AUDIO_MIXER_WITH_MIXBUF
    3431
    3532/**
     
    171168    /** The sink's critical section. */
    172169    RTCRITSECT              CritSect;
    173 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF
    174170    /** This sink's mixing buffer, acting as
    175171     * a parent buffer for all streams this sink owns. */
    176172    PDMAUDIOMIXBUF          MixBuf;
    177 #endif
    178173    /** Union for input/output specifics. */
    179174    union
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