VirtualBox

Ignore:
Timestamp:
May 18, 2015 7:11:51 PM (10 years ago)
Author:
vboxsync
Message:

PDM/Audio: AudioMixBuffer documentation, renaming.

File:
1 edited

Legend:

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

    r55828 r55920  
    22102210    {
    22112211        uint32_t cbRead = 0;
    2212         rc = audioMixerProcessSinkIn(pSink, AUDMIXOP_BLEND, pBdle->au8HdaBuffer, cb2Copy, &cbRead);
     2212        rc = AudioMixerProcessSinkIn(pSink, AUDMIXOP_BLEND, pBdle->au8HdaBuffer, cb2Copy, &cbRead);
    22132213        if (RT_SUCCESS(rc))
    22142214        {
     
    24752475        if (rc == VINF_SUCCESS) /* Note: Could return VWRN_ALREADY_EXISTS. */
    24762476        {
    2477             audioMixerRemoveStream(pSink, pDrv->LineIn.phStrmIn);
    2478             rc = audioMixerAddStreamIn(pSink,
     2477            AudioMixerRemoveStream(pSink, pDrv->LineIn.phStrmIn);
     2478            rc = AudioMixerAddStreamIn(pSink,
    24792479                                       pDrv->pConnector, pDrv->LineIn.pStrmIn,
    24802480                                       0 /* uFlags */, &pDrv->LineIn.phStrmIn);
     
    25072507        if (rc == VINF_SUCCESS) /* Note: Could return VWRN_ALREADY_EXISTS. */
    25082508        {
    2509             audioMixerRemoveStream(pThis->pSinkOutput, pDrv->Out.phStrmOut);
    2510             rc = audioMixerAddStreamOut(pThis->pSinkOutput,
     2509            AudioMixerRemoveStream(pThis->pSinkOutput, pDrv->Out.phStrmOut);
     2510            rc = AudioMixerAddStreamOut(pThis->pSinkOutput,
    25112511                                        pDrv->pConnector, pDrv->Out.pStrmOut,
    25122512                                        0 /* uFlags */, &pDrv->Out.phStrmOut);
     
    25432543
    25442544    /* Set the volume. Codec already converted it to the correct range. */
    2545     audioMixerSetSinkVolume(pSink, &vol);
     2545    AudioMixerSetSinkVolume(pSink, &vol);
    25462546
    25472547    LogFlowFuncLeaveRC(rc);
     
    35893589    if (pThis->pMixer)
    35903590    {
    3591         audioMixerDestroy(pThis->pMixer);
     3591        AudioMixerDestroy(pThis->pMixer);
    35923592        pThis->pMixer = NULL;
    35933593    }
     
    38583858    if (RT_SUCCESS(rc))
    38593859    {
    3860         rc = audioMixerCreate("HDA Mixer", 0 /* uFlags */, &pThis->pMixer);
     3860        rc = AudioMixerCreate("HDA Mixer", 0 /* uFlags */, &pThis->pMixer);
    38613861        if (RT_SUCCESS(rc))
    38623862        {
     
    38683868            streamCfg.enmEndianness = PDMAUDIOHOSTENDIANNESS;
    38693869
    3870             rc = audioMixerSetDeviceFormat(pThis->pMixer, &streamCfg);
     3870            rc = AudioMixerSetDeviceFormat(pThis->pMixer, &streamCfg);
    38713871            AssertRC(rc);
    38723872
    38733873            /* Add all required audio sinks. */
    3874             rc = audioMixerAddSink(pThis->pMixer, "[Playback] PCM Output",
     3874            rc = AudioMixerAddSink(pThis->pMixer, "[Playback] PCM Output",
    38753875                                   AUDMIXSINKDIR_OUTPUT, &pThis->pSinkOutput);
    38763876            AssertRC(rc);
    38773877
    3878             rc = audioMixerAddSink(pThis->pMixer, "[Recording] Line In",
     3878            rc = AudioMixerAddSink(pThis->pMixer, "[Recording] Line In",
    38793879                                   AUDMIXSINKDIR_INPUT, &pThis->pSinkLineIn);
    38803880            AssertRC(rc);
    38813881
    3882             rc = audioMixerAddSink(pThis->pMixer, "[Recording] Microphone In",
     3882            rc = AudioMixerAddSink(pThis->pMixer, "[Recording] Microphone In",
    38833883                                   AUDMIXSINKDIR_INPUT, &pThis->pSinkMicIn);
    38843884            AssertRC(rc);
     
    38863886            /* There is no master volume control. Set the master to max. */
    38873887            PDMAUDIOVOLUME vol = { false, 255, 255 };
    3888             rc = audioMixerSetMasterVolume(pThis->pMixer, &vol);
     3888            rc = AudioMixerSetMasterVolume(pThis->pMixer, &vol);
    38893889            AssertRC(rc);
    38903890        }
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