Changeset 54975 in vbox
- Timestamp:
- Mar 26, 2015 7:11:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r54974 r54975 1085 1085 */ 1086 1086 PPDMAUDIOGSTSTRMOUT pGstStrmOut; 1087 if (!cSamplesLive)1088 {1089 uint32_t cbFree2 = UINT32_MAX;1090 RTListForEach(&pHstStrmOut->lstGstStrmOut, pGstStrmOut, PDMAUDIOGSTSTRMOUT, Node)1087 uint32_t cbFree2 = UINT32_MAX; 1088 RTListForEach(&pHstStrmOut->lstGstStrmOut, pGstStrmOut, PDMAUDIOGSTSTRMOUT, Node) 1089 { 1090 if (pGstStrmOut->State.fActive) 1091 1091 { 1092 if (pGstStrmOut->State.fActive) 1093 { 1094 /* Tell the sound device emulation how many samples are free 1095 * so that it can start writing PCM data to us. */ 1096 cbFree2 = RT_MIN(cbFree2, AUDIOMIXBUF_S2B_RATIO(&pGstStrmOut->MixBuf, 1097 audioMixBufFree(&pGstStrmOut->MixBuf))); 1098 1099 LogFlowFunc(("\t[%s] cbFree=%RU32\n", pGstStrmOut->MixBuf.pszName, cbFree2)); 1100 } 1092 /* Tell the sound device emulation how many samples are free 1093 * so that it can start writing PCM data to us. */ 1094 cbFree2 = RT_MIN(cbFree2, AUDIOMIXBUF_S2B_RATIO(&pGstStrmOut->MixBuf, 1095 audioMixBufFree(&pGstStrmOut->MixBuf))); 1096 1097 LogFlowFunc(("\t[%s] cbFree=%RU32\n", pGstStrmOut->MixBuf.pszName, cbFree2)); 1101 1098 } 1102 1103 cbFreeOut = RT_MIN(cbFreeOut, cbFree2); 1104 }1099 } 1100 1101 cbFreeOut = RT_MIN(cbFreeOut, cbFree2); 1105 1102 } 1106 1103
Note:
See TracChangeset
for help on using the changeset viewer.