Changeset 25768 in vbox
- Timestamp:
- Jan 12, 2010 2:19:08 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56525
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/pulseaudio.c
r25738 r25768 278 278 if (fIn) 279 279 { 280 LogRel(("Pulse: Obtained buffer attributes for recording: maxlength=%d fragsize=%d\n",280 LogRel(("Pulse: Obtained record buffer attributes: maxlength=%d fragsize=%d\n", 281 281 pBufAttr->maxlength, pBufAttr->fragsize)); 282 282 } 283 283 else 284 284 { 285 LogRel(("Pulse: Obtained buffer attributes for playback: maxlength=%d tlength=%d prebuf=%d minreq=%d\n",285 LogRel(("Pulse: Obtained playback buffer attributes: maxlength=%d tlength=%d prebuf=%d minreq=%d\n", 286 286 pBufAttr->maxlength, pBufAttr->tlength, pBufAttr->prebuf, pBufAttr->minreq)); 287 287 } … … 556 556 pa_threaded_mainloop_unlock(g_pMainLoop); 557 557 558 if (cFramesAvail == -1) 559 { 560 if (pPulse->cErrors < MAX_LOG_REL_ERRORS) 561 { 562 int rc = pa_context_errno(g_pContext); 563 pPulse->cErrors++; 564 LogRel(("Pulse: Failed to determine the readable size: %s\n", 565 pa_strerror(rc))); 566 } 567 return 0; 568 } 569 558 570 /* If the buffer was not dropped last call, add what remains */ 559 571 if (pPulse->pu8PeekBuf) … … 570 582 pa_threaded_mainloop_unlock(g_pMainLoop); 571 583 pPulse->offPeekBuf = 0; 572 if (!pPulse->cbPeekBuf) 584 if ( !pPulse->pu8PeekBuf 585 || !pPulse->cbPeekBuf) 573 586 break; 574 587 }
Note:
See TracChangeset
for help on using the changeset viewer.