VirtualBox

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


Ignore:
Timestamp:
Dec 8, 2015 3:23:12 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104613
Message:

Indent.

File:
1 edited

Legend:

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

    r59059 r59060  
    14251425    if (RT_SUCCESS(rc))
    14261426    {
    1427     if (pcSamplesPlayed)
    1428         *pcSamplesPlayed = cReadTotal;
     1427        if (pcSamplesPlayed)
     1428            *pcSamplesPlayed = cReadTotal;
    14291429    }
    14301430
     
    15611561        if (pDSCB == NULL)
    15621562        {
    1563                 pThis->fEnabledIn = false;
    1564 
    1565                 rc = VERR_NOT_AVAILABLE;
    1566                 break;
     1563            pThis->fEnabledIn = false;
     1564
     1565            rc = VERR_NOT_AVAILABLE;
     1566            break;
    15671567        }
    15681568
     
    15781578            }
    15791579
    1580                 rc = VERR_NOT_AVAILABLE;
    1581                 break;
     1580            rc = VERR_NOT_AVAILABLE;
     1581            break;
    15821582        }
    15831583
     
    15931593        DWORD csCaptured = dsoundRingDistance(csReadPos, pDSoundStrmIn->csCaptureReadPos, pDSoundStrmIn->csCaptureBufferSize);
    15941594        if (csCaptured == 0)
    1595                 break;
     1595            break;
    15961596
    15971597        /* Using as an intermediate not circular buffer. */
     
    16031603        {
    16041604            DSLOGF(("DSound: Capture buffer full\n"));
    1605                 break;
     1605            break;
    16061606        }
    16071607
     
    16221622        if (FAILED(hr))
    16231623        {
    1624                 rc = VERR_ACCESS_DENIED;
    1625                 break;
     1624            rc = VERR_ACCESS_DENIED;
     1625            break;
    16261626        }
    16271627
     
    16511651        directSoundCaptureUnlock(pDSCB, pv1, pv2, cb1, cb2);
    16521652
    1653             if (csWrittenTotal) /* Captured something? */
    1654                 rc = AudioMixBufMixToParent(&pHstStrmIn->MixBuf, csWrittenTotal, &cCaptured);
     1653        if (csWrittenTotal) /* Captured something? */
     1654            rc = AudioMixBufMixToParent(&pHstStrmIn->MixBuf, csWrittenTotal, &cCaptured);
    16551655
    16561656        if (RT_SUCCESS(rc))
    16571657        {
    1658                 pDSoundStrmIn->csCaptureReadPos = (pDSoundStrmIn->csCaptureReadPos + cCaptured) % pDSoundStrmIn->csCaptureBufferSize;
     1658            pDSoundStrmIn->csCaptureReadPos = (pDSoundStrmIn->csCaptureReadPos + cCaptured) % pDSoundStrmIn->csCaptureBufferSize;
    16591659            DSLOGF(("DSound: Capture %ld (%ld+%ld), processed %RU32/%RU32\n",
    1660                         csCaptured, len1, len2, cCaptured, csWrittenTotal));
     1660                    csCaptured, len1, len2, cCaptured, csWrittenTotal));
    16611661        }
    16621662
     
    20912091    "DirectSound Audio host driver",
    20922092    /* fFlags */
    2093      PDM_DRVREG_FLAGS_HOST_BITS_DEFAULT,
     2093    PDM_DRVREG_FLAGS_HOST_BITS_DEFAULT,
    20942094    /* fClass. */
    20952095    PDM_DRVREG_CLASS_AUDIO,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette