Changeset 88283 in vbox for trunk/src/VBox/Devices/Audio/DrvHostAudioAlsa.cpp
- Timestamp:
- Mar 24, 2021 7:00:13 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143494
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioAlsa.cpp
r88282 r88283 798 798 if (cFramesWritten == -EPIPE) 799 799 { 800 /* underrun occurred*/800 /* Underrun occurred. */ 801 801 rc = alsaStreamRecover(pStreamALSA->phPCM); 802 if (RT_SUCCESS(rc)) 803 LogFlowFunc(("Recovered from playback (iTry=%u)\n", iTry)); 804 else 802 if (RT_FAILURE(rc)) 805 803 break; 804 LogFlowFunc(("Recovered from playback (iTry=%u)\n", iTry)); 806 805 } 807 806 else 808 807 { 809 /* an suspended event occurred, needs resuming. */808 /* An suspended event occurred, needs resuming. */ 810 809 rc = alsaStreamResume(pStreamALSA->phPCM); 811 if (RT_SUCCESS(rc)) 812 LogFlowFunc(("Resumed suspended output stream (iTry=%u)\n", iTry)); 813 else 810 if (RT_FAILURE(rc)) 814 811 { 815 812 LogRel(("ALSA: Failed to resume output stream (iTry=%u, rc=%Rrc)\n", iTry, rc)); 816 813 break; 817 814 } 815 LogFlowFunc(("Resumed suspended output stream (iTry=%u)\n", iTry)); 818 816 } 819 817 … … 827 825 } 828 826 LogFunc(("snd_pcm_writei w/ cbToWrite=%u -> %ld [cFramesAvail=%ld, iTry=%d]\n", cbToWrite, cFramesWritten, cFramesAvail, iTry)); 829 } /* For number of tries. */830 831 /* Make sure we return with an error . */827 } 828 829 /* Make sure we return with an error status. */ 832 830 if (RT_SUCCESS_NP(rc)) 833 831 {
Note:
See TracChangeset
for help on using the changeset viewer.