Changeset 88762 in vbox
- Timestamp:
- Apr 29, 2021 1:20:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r88761 r88762 1978 1978 { 1979 1979 case PDMAUDIOSTREAMCMD_ENABLE: 1980 {1981 1980 if (!(pStreamEx->Core.fStatus & PDMAUDIOSTREAM_STS_ENABLED)) 1982 1981 { … … 2012 2011 } 2013 2012 break; 2014 }2015 2013 2016 2014 case PDMAUDIOSTREAMCMD_DISABLE: 2017 {2018 2015 if (pStreamEx->Core.fStatus & PDMAUDIOSTREAM_STS_ENABLED) 2019 2016 { … … 2051 2048 } 2052 2049 break; 2053 }2054 2050 2055 2051 case PDMAUDIOSTREAMCMD_PAUSE: 2056 {2057 if (!(pStreamEx->Core.fStatus & PDMAUDIOSTREAM_STS_PAUSED))2052 if ( (pStreamEx->Core.fStatus & (PDMAUDIOSTREAM_STS_ENABLED | PDMAUDIOSTREAM_STS_PAUSED)) 2053 == PDMAUDIOSTREAM_STS_ENABLED) 2058 2054 { 2059 2055 rc = drvAudioStreamControlInternalBackend(pThis, pStreamEx, PDMAUDIOSTREAMCMD_PAUSE); … … 2065 2061 } 2066 2062 break; 2067 }2068 2063 2069 2064 case PDMAUDIOSTREAMCMD_RESUME: 2070 {2071 2065 if (pStreamEx->Core.fStatus & PDMAUDIOSTREAM_STS_PAUSED) 2072 2066 { 2067 Assert(pStreamEx->Core.fStatus & PDMAUDIOSTREAM_STS_ENABLED); 2073 2068 rc = drvAudioStreamControlInternalBackend(pThis, pStreamEx, PDMAUDIOSTREAMCMD_RESUME); 2074 2069 if (RT_SUCCESS(rc)) … … 2079 2074 } 2080 2075 break; 2081 }2082 2076 2083 2077 default:
Note:
See TracChangeset
for help on using the changeset viewer.