VirtualBox

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


Ignore:
Timestamp:
Jan 22, 2016 8:02:11 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105170
Message:

Audio/DrvHostCoreAudio.cpp: Fixed hang when writing to the audio recording mixing buffer is not possible at that time.

File:
1 edited

Legend:

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

    r59429 r59433  
    13871387
    13881388            rc = AudioMixBufWriteCirc(&pHstStrmIn->MixBuf, puBuf, cbToRead, &cWritten);
    1389             if (RT_FAILURE(rc))
     1389            if (   RT_FAILURE(rc)
     1390                || !cWritten)
     1391            {
     1392                RTCircBufReleaseReadBlock(pStreamIn->pBuf, cbToRead);
    13901393                break;
     1394            }
    13911395
    13921396            cbWritten = AUDIOMIXBUF_S2B(&pHstStrmIn->MixBuf, cWritten);
     
    14001404        }
    14011405
    1402         LogFlowFunc(("cbToWrite=%zu, cbWrittenTotal=%RU32\n", cbToWrite, cbWrittenTotal));
     1406        LogFlowFunc(("cbToWrite=%zu, cbToRead=%zu, cbWrittenTotal=%RU32, rc=%Rrc\n", cbToWrite, cbToRead, cbWrittenTotal, rc));
    14031407    }
    14041408    while (0);
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