VirtualBox

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


Ignore:
Timestamp:
Apr 4, 2016 3:22:23 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106368
Message:

Audio/DrvHostCoreAudio.cpp: Check if re-initializing output was successful.

File:
1 edited

Legend:

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

    r60305 r60306  
    15461546    PCOREAUDIOSTREAMOUT pStreamOut = (PCOREAUDIOSTREAMOUT)pHstStrmOut;
    15471547
     1548    int rc = VINF_SUCCESS;
     1549
    15481550    /* Check if the audio device should be reinitialized. If so do it. */
    15491551    if (ASMAtomicReadU32(&pStreamOut->status) == CA_STATUS_REINIT)
    1550         coreAudioReinitOut(pInterface, &pStreamOut->streamOut);
     1552    {
     1553        rc = coreAudioReinitOut(pInterface, &pStreamOut->streamOut);
     1554        if (RT_FAILURE(rc))
     1555            return rc;
     1556    }
    15511557
    15521558    /* Not much else to do here. */
     
    15601566    }
    15611567
    1562     int rc = VINF_SUCCESS;
    15631568    uint32_t cbReadTotal = 0;
    15641569    uint32_t cAvail = AudioMixBufAvail(&pHstStrmOut->MixBuf);
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