Changeset 78506 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- May 14, 2019 2:28:16 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r77603 r78506 779 779 780 780 default: 781 rc = VERR_NOT_IMPLEMENTED;781 AssertFailedStmt(rc = VERR_NOT_IMPLEMENTED); 782 782 break; 783 783 } 784 784 785 #ifdef LOG_ENABLED786 785 char *pszStatus = dbgAudioMixerSinkStatusToStr(pSink->fStatus); 787 LogFlowFunc(("[%s] enmCmd=%d, fStatus=%s, rc=%Rrc\n", pSink->pszName, enmSinkCmd, pszStatus, rc)); 786 LogRel2(("Mixer: Set new status of sink '%s' to %s\n", pSink->pszName, pszStatus)); 787 LogFlowFunc(("[%s] enmCmd=%RU32, fStatus=%s, rc=%Rrc\n", pSink->pszName, enmSinkCmd, pszStatus, rc)); 788 788 RTStrFree(pszStatus); 789 #endif790 789 791 790 int rc2 = RTCritSectLeave(&pSink->CritSect); … … 2012 2011 ("%s: Can't write to a sink which is not an output sink\n", pSink->pszName)); 2013 2012 2014 Assert(cbBuf <= AudioMixBufFreeBytes(&pSink->MixBuf));2015 2016 2013 uint32_t cbWritten = 0; 2017 uint32_t cbToWrite = cbBuf;2014 uint32_t cbToWrite = RT_MIN(AudioMixBufFreeBytes(&pSink->MixBuf), cbBuf); 2018 2015 while (cbToWrite) 2019 2016 { … … 2032 2029 } 2033 2030 2034 Assert(cbWritten == cbBuf);2031 Log3Func(("[%s] cbBuf=%RU32 -> cbWritten=%RU32\n", pSink->pszName, cbBuf, cbWritten)); 2035 2032 2036 2033 /* Update the sink's last written time stamp. */ -
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r77664 r78506 1215 1215 RTCircBufReleaseReadBlock(pCircBuf, cbWritten); 1216 1216 1217 if (RT_FAILURE(rc)) 1217 if ( !cbWritten /* Nothing written? */ 1218 || RT_FAILURE(rc)) 1218 1219 break; 1219 1220 … … 1550 1551 { 1551 1552 /* Read (guest output) data and write it to the stream's sink. */ 1552 rc2 = ichac97R3StreamRead(pThis, pStream, pSink, cbToReadFromStream, NULL );1553 rc2 = ichac97R3StreamRead(pThis, pStream, pSink, cbToReadFromStream, NULL /* pcbRead */); 1553 1554 AssertRC(rc2); 1554 1555 } -
trunk/src/VBox/Devices/Audio/HDAStream.cpp
r76672 r78506 873 873 RTCircBufReleaseReadBlock(pCircBuf, cbWritten); 874 874 875 if (RT_FAILURE(rc)) 875 if ( !cbWritten /* Nothing written? */ 876 || RT_FAILURE(rc)) 876 877 break; 877 878 … … 1483 1484 { 1484 1485 /* Read (guest output) data and write it to the stream's sink. */ 1485 rc2 = hdaR3StreamRead(pStream, cbToReadFromStream, NULL );1486 rc2 = hdaR3StreamRead(pStream, cbToReadFromStream, NULL /* pcbRead */); 1486 1487 AssertRC(rc2); 1487 1488 }
Note:
See TracChangeset
for help on using the changeset viewer.