- Timestamp:
- Oct 14, 2020 7:58:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r86494 r86561 456 456 case PDMAUDIOSTREAMCMD_ENABLE: 457 457 { 458 if (!(pStream->fStatus & PDMAUDIOSTREAMSTS_FLAGS_ENABLED)) 459 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_ENABLE); 458 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_ENABLE); 460 459 break; 461 460 } … … 463 462 case PDMAUDIOSTREAMCMD_DISABLE: 464 463 { 465 if (pStream->fStatus & PDMAUDIOSTREAMSTS_FLAGS_ENABLED) 466 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_DISABLE); 464 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_DISABLE); 467 465 break; 468 466 } … … 470 468 case PDMAUDIOSTREAMCMD_PAUSE: 471 469 { 472 /* Only pause if the stream is enabled. */ 473 if (!(pStream->fStatus & PDMAUDIOSTREAMSTS_FLAGS_ENABLED)) 474 break; 475 476 if (!(pStream->fStatus & PDMAUDIOSTREAMSTS_FLAGS_PAUSED)) 477 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_PAUSE); 470 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_PAUSE); 478 471 break; 479 472 } … … 481 474 case PDMAUDIOSTREAMCMD_RESUME: 482 475 { 483 /* Only need to resume if the stream is enabled. */ 484 if (!(pStream->fStatus & PDMAUDIOSTREAMSTS_FLAGS_ENABLED)) 485 break; 486 487 if (pStream->fStatus & PDMAUDIOSTREAMSTS_FLAGS_PAUSED) 488 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_RESUME); 476 rc = pThis->pHostDrvAudio->pfnStreamControl(pThis->pHostDrvAudio, pStream->pvBackend, PDMAUDIOSTREAMCMD_RESUME); 489 477 break; 490 478 }
Note:
See TracChangeset
for help on using the changeset viewer.