VirtualBox

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


Ignore:
Timestamp:
Aug 16, 2016 10:14:46 AM (8 years ago)
Author:
vboxsync
Message:

Audio: Renaming.

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

Legend:

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

    r63529 r63534  
    545545    AudioMixBufDestroy(&pHstStream->MixBuf);
    546546
    547     if (CfgHostAcq.cSamples)
    548     {
    549         LogFlowFunc(("[%s] cSamples=%RU32\n", pHstStream->szName, CfgHostAcq.cSamples * 4));
    550 
    551         rc2 = AudioMixBufInit(&pHstStream->MixBuf, pHstStream->szName, &PCMProps, CfgHostAcq.cSamples * 4);
     547    if (CfgHostAcq.cSampleBufferSize)
     548    {
     549        LogFlowFunc(("[%s] cSamples=%RU32\n", pHstStream->szName, CfgHostAcq.cSampleBufferSize * 4));
     550
     551        rc2 = AudioMixBufInit(&pHstStream->MixBuf, pHstStream->szName, &PCMProps, CfgHostAcq.cSampleBufferSize * 4);
    552552        AssertRC(rc2);
    553553    }
     
    567567    AudioMixBufDestroy(&pGstStream->MixBuf);
    568568
    569     if (CfgHostAcq.cSamples)
    570     {
    571         LogFlowFunc(("[%s] cSamples=%RU32\n", pGstStream->szName, CfgHostAcq.cSamples * 2));
    572 
    573         rc2 = AudioMixBufInit(&pGstStream->MixBuf, pGstStream->szName, &PCMProps, CfgHostAcq.cSamples * 2);
     569    if (CfgHostAcq.cSampleBufferSize)
     570    {
     571        LogFlowFunc(("[%s] cSamples=%RU32\n", pGstStream->szName, CfgHostAcq.cSampleBufferSize * 2));
     572
     573        rc2 = AudioMixBufInit(&pGstStream->MixBuf, pGstStream->szName, &PCMProps, CfgHostAcq.cSampleBufferSize * 2);
    574574        AssertRC(rc2);
    575575    }
     
    579579#endif
    580580
    581     if (CfgHostAcq.cSamples)
     581    if (CfgHostAcq.cSampleBufferSize)
    582582    {
    583583        if (pCfgGuest->enmDir == PDMAUDIODIR_IN)
  • trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp

    r63481 r63534  
    13591359            break;
    13601360
    1361         pCfgAcq->uHz           = obt.freq;
    1362         pCfgAcq->cChannels     = obt.nchannels;
    1363         pCfgAcq->enmFormat     = enmFormat;
    1364         pCfgAcq->enmEndianness = enmEnd;
    1365         pCfgAcq->cSamples      = obt.samples * 4;
     1361        pCfgAcq->uHz               = obt.freq;
     1362        pCfgAcq->cChannels         = obt.nchannels;
     1363        pCfgAcq->enmFormat         = enmFormat;
     1364        pCfgAcq->enmEndianness     = enmEnd;
     1365        pCfgAcq->cSampleBufferSize = obt.samples * 4;
    13661366
    13671367        PDMAUDIOPCMPROPS Props;
     
    14221422            break;
    14231423
    1424         pCfgAcq->uHz           = obt.freq;
    1425         pCfgAcq->cChannels     = obt.nchannels;
    1426         pCfgAcq->enmFormat     = enmFormat;
    1427         pCfgAcq->enmEndianness = enmEnd;
    1428         pCfgAcq->cSamples      = obt.samples;
     1424        pCfgAcq->uHz               = obt.freq;
     1425        pCfgAcq->cChannels         = obt.nchannels;
     1426        pCfgAcq->enmFormat         = enmFormat;
     1427        pCfgAcq->enmEndianness     = enmEnd;
     1428        pCfgAcq->cSampleBufferSize = obt.samples;
    14291429
    14301430        PDMAUDIOPCMPROPS Props;
  • trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp

    r63529 r63534  
    15621562
    15631563        if (pCfgAcq)
    1564             pCfgAcq->cSamples = cSamples;
     1564            pCfgAcq->cSampleBufferSize = cSamples;
    15651565    }
    15661566    else
     
    18821882
    18831883        if (pCfgAcq)
    1884             pCfgAcq->cSamples = cSamples;
     1884            pCfgAcq->cSampleBufferSize = cSamples;
    18851885    }
    18861886    else
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r63532 r63534  
    14621462
    14631463        if (pCfgAcq)
    1464             pCfgAcq->cSamples = pThis->cfg.cbBufferOut >> pDSoundStream->Props.cShift;
     1464            pCfgAcq->cSampleBufferSize = pThis->cfg.cbBufferOut >> pDSoundStream->Props.cShift;
    14651465
    14661466        /* Try to open playback in case the device is already there. */
     
    17141714
    17151715        if (pCfgAcq)
    1716             pCfgAcq->cSamples = pThis->cfg.cbBufferIn >> pDSoundStream->Props.cShift;
     1716            pCfgAcq->cSampleBufferSize = pThis->cfg.cbBufferIn >> pDSoundStream->Props.cShift;
    17171717
    17181718        /* Try to open capture in case the device is already there. */
  • trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp

    r63532 r63534  
    138138    {
    139139        if (pCfgAcq)
    140             pCfgAcq->cSamples = _1K;
     140            pCfgAcq->cSampleBufferSize = _1K;
    141141    }
    142142
     
    183183    {
    184184        if (pCfgAcq)
    185             pCfgAcq->cSamples = pDbgStream->Out.cMaxSamplesInPlayBuffer;
     185            pCfgAcq->cSampleBufferSize = pDbgStream->Out.cMaxSamplesInPlayBuffer;
    186186    }
    187187
  • trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp

    r63529 r63534  
    221221    {
    222222        if (pCfgAcq)
    223             pCfgAcq->cSamples = _1K;
     223            pCfgAcq->cSampleBufferSize = _1K;
    224224    }
    225225
     
    244244        {
    245245            if (pCfgAcq)
    246                 pCfgAcq->cSamples = pNullStream->cMaxSamplesInPlayBuffer;
     246                pCfgAcq->cSampleBufferSize = pNullStream->cMaxSamplesInPlayBuffer;
    247247        }
    248248        else
  • trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp

    r63529 r63534  
    711711                pStrm->cbBuf = cbBuf;
    712712
    713                 pCfgAcq->cSamples = cSamples;
     713                pCfgAcq->cSampleBufferSize = cSamples;
    714714            }
    715715        }
     
    833833            }
    834834#endif
    835             pCfgAcq->cSamples = cSamples;
     835            pCfgAcq->cSampleBufferSize = cSamples;
    836836        }
    837837
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r63529 r63534  
    684684                pStrm->pDrv     = pThis;
    685685
    686                 pCfgAcq->cSamples = cbBuf >> Props.cShift;
     686                pCfgAcq->cSampleBufferSize = cbBuf >> Props.cShift;
    687687            }
    688688            else
     
    733733        pPAStrm->pu8PeekBuf = NULL;
    734734
    735         pCfgAcq->uHz       = pPAStrm->SampleSpec.rate;
    736         pCfgAcq->cChannels = pPAStrm->SampleSpec.channels;
    737         pCfgAcq->cSamples = RT_MIN(pPAStrm->BufAttr.fragsize * 10, pPAStrm->BufAttr.maxlength) >> Props.cShift;
     735        pCfgAcq->uHz               = pPAStrm->SampleSpec.rate;
     736        pCfgAcq->cChannels         = pPAStrm->SampleSpec.channels;
     737        pCfgAcq->cSampleBufferSize = RT_MIN(pPAStrm->BufAttr.fragsize * 10, pPAStrm->BufAttr.maxlength) >> Props.cShift;
    738738    }
    739739
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