Changeset 88731 in vbox for trunk/src/VBox
- Timestamp:
- Apr 27, 2021 12:10:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r88726 r88731 1084 1084 1085 1085 pStreamEx->Core.fStatus |= PDMAUDIOSTREAM_STS_INITIALIZED; 1086 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 1086 1087 1087 1088 return VINF_SUCCESS; … … 1497 1498 1498 1499 pStreamEx->Core.fStatus &= ~PDMAUDIOSTREAM_STS_INITIALIZED; 1500 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 1499 1501 } 1500 1502 … … 1750 1752 /* Remove the pending re-init flag on success. */ 1751 1753 pStreamEx->Core.fStatus &= ~PDMAUDIOSTREAM_STS_NEED_REINIT; 1754 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 1752 1755 } 1753 1756 else … … 1767 1770 1768 1771 /* Don't try to re-initialize anymore and mark as disabled. */ 1772 /** @todo should mark it as not-initialized too, shouldn't we? */ 1769 1773 pStreamEx->Core.fStatus &= ~(PDMAUDIOSTREAM_STS_NEED_REINIT | PDMAUDIOSTREAM_STS_ENABLED); 1774 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 1770 1775 1771 1776 /* Note: Further writes to this stream go to / will be read from the bit bucket (/dev/null) from now on. */ … … 1965 1970 1966 1971 if (RT_SUCCESS(rc)) 1972 { 1967 1973 pStreamEx->Core.fStatus |= PDMAUDIOSTREAM_STS_ENABLED; 1974 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 1975 } 1968 1976 } 1969 1977 break; … … 1983 1991 LogFunc(("[%s] Pending disable/pause\n", pStreamEx->Core.szName)); 1984 1992 pStreamEx->Core.fStatus |= PDMAUDIOSTREAM_STS_PENDING_DISABLE; 1993 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 1985 1994 1986 1995 /* Schedule a follow up timer to the pending-disable state. We cannot rely … … 2014 2023 rc = drvAudioStreamControlInternalBackend(pThis, pStreamEx, PDMAUDIOSTREAMCMD_PAUSE); 2015 2024 if (RT_SUCCESS(rc)) 2025 { 2016 2026 pStreamEx->Core.fStatus |= PDMAUDIOSTREAM_STS_PAUSED; 2027 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 2028 } 2017 2029 } 2018 2030 break; … … 2025 2037 rc = drvAudioStreamControlInternalBackend(pThis, pStreamEx, PDMAUDIOSTREAMCMD_RESUME); 2026 2038 if (RT_SUCCESS(rc)) 2039 { 2027 2040 pStreamEx->Core.fStatus &= ~PDMAUDIOSTREAM_STS_PAUSED; 2041 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 2042 } 2028 2043 } 2029 2044 break; … … 2351 2366 { 2352 2367 pStreamEx->Core.fStatus &= ~(PDMAUDIOSTREAM_STS_ENABLED | PDMAUDIOSTREAM_STS_PENDING_DISABLE); 2368 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 2353 2369 drvAudioStreamDropInternal(pThis, pStreamEx); /* Not a DROP command, just a stream reset. */ 2354 2370 } … … 3047 3063 { 3048 3064 pStreamEx->Core.fStatus |= PDMAUDIOSTREAM_STS_NEED_REINIT; 3065 PDMAUDIOSTREAM_STS_ASSERT_VALID(pStreamEx->Core.fStatus); 3049 3066 pStreamEx->cTriesReInit = 0; 3050 3067 pStreamEx->nsLastReInit = 0;
Note:
See TracChangeset
for help on using the changeset viewer.