Changeset 63623 in vbox
- Timestamp:
- Aug 24, 2016 8:31:28 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r63616 r63623 761 761 #endif 762 762 763 Log3Func(("[%s] :cbReadable=%RU32\n", pSink->pszName, cbReadable));763 Log3Func(("[%s] cbReadable=%RU32\n", pSink->pszName, cbReadable)); 764 764 765 765 int rc2 = RTCritSectLeave(&pSink->CritSect); … … 794 794 #endif 795 795 796 Log3Func(("[%s] :cbWritable=%RU32\n", pSink->pszName, cbWritable));796 Log3Func(("[%s] cbWritable=%RU32\n", pSink->pszName, cbWritable)); 797 797 798 798 int rc2 = RTCritSectLeave(&pSink->CritSect); … … 957 957 if (!(pMixStream->pConn->pfnStreamGetStatus(pMixStream->pConn, pMixStream->pStream) & PDMAUDIOSTRMSTS_FLAG_ENABLED)) 958 958 { 959 Log FlowFunc(("%s: Stream '%s' Disabled, skipping ...\n", pMixStream->pszName, pMixStream->pStream->szName));959 Log3Func(("[%s] Stream '%s' disabled, skipping ...\n", pSink->pszName, pMixStream->pszName)); 960 960 continue; 961 961 } … … 963 963 uint32_t cbTotalRead = 0; 964 964 uint32_t cbToRead = cbBuf; 965 966 int rc2 = VINF_SUCCESS; 965 967 966 968 while (cbToRead) … … 968 970 uint32_t cbReadStrm; 969 971 AssertPtr(pMixStream->pConn); 970 #ifndef VBOX_AUDIO_MIXER_WITH_MIXBUF 971 rc = pMixStream->pConn->pfnStreamRead(pMixStream->pConn, pMixStream->pStream, 972 (uint8_t *)pvMixBuf + cbTotalRead, cbToRead, &cbReadStrm); 972 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF 973 # error "Implement me!" 974 #else 975 rc2 = pMixStream->pConn->pfnStreamRead(pMixStream->pConn, pMixStream->pStream, 976 (uint8_t *)pvMixBuf + cbTotalRead, cbToRead, &cbReadStrm); 973 977 #endif 974 if ( RT_FAILURE(rc) 978 if (RT_FAILURE(rc2)) 979 Log3Func(("[%s] Failed reading from stream '%s': %Rrc\n", pSink->pszName, pMixStream->pszName, rc2)); 980 981 if ( RT_FAILURE(rc2) 975 982 || !cbReadStrm) 976 983 break; … … 983 990 } 984 991 985 if (RT_FAILURE(rc ))992 if (RT_FAILURE(rc2)) 986 993 continue; 987 994 … … 997 1004 pSink->fStatus &= ~AUDMIXSINK_STS_DIRTY; 998 1005 999 #ifndef VBOX_AUDIO_MIXER_WITH_MIXBUF 1006 #ifdef VBOX_AUDIO_MIXER_WITH_MIXBUF 1007 # error "Implement me!" 1008 #else 1000 1009 if (cbRead) 1001 1010 memcpy(pvBuf, pvMixBuf, cbRead); … … 1009 1018 #endif 1010 1019 1011 Log3Func(("[%s] :cbRead=%RU32, fStatus=0x%x, rc=%Rrc\n", pSink->pszName, cbRead, pSink->fStatus, rc));1020 Log3Func(("[%s] cbRead=%RU32, fStatus=0x%x, rc=%Rrc\n", pSink->pszName, cbRead, pSink->fStatus, rc)); 1012 1021 1013 1022 int rc2 = RTCritSectLeave(&pSink->CritSect);
Note:
See TracChangeset
for help on using the changeset viewer.