- Timestamp:
- Sep 15, 2016 9:39:02 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r63828 r63844 58 58 static int audioMixerSinkUpdateInternal(PAUDMIXSINK pSink); 59 59 60 int audioMixerStreamCtlInternal(PAUDMIXSTREAM pMixStream, PDMAUDIOSTREAMCMD enmCmd, uint32_t fCtl); 60 61 static void audioMixerStreamDestroyInternal(PAUDMIXSTREAM pStream); 61 62 … … 644 645 RTListForEach(&pSink->lstStreams, pStream, AUDMIXSTREAM, Node) 645 646 { 646 int rc2 = AudioMixerStreamCtl(pStream, enmCmdStream, AUDMIXSTRMCTL_FLAG_NONE);647 int rc2 = audioMixerStreamCtlInternal(pStream, enmCmdStream, AUDMIXSTRMCTL_FLAG_NONE); 647 648 if (RT_SUCCESS(rc)) 648 649 rc = rc2; … … 1540 1541 1541 1542 /** 1542 * Controls a mixer stream .1543 * Controls a mixer stream, internal version. 1543 1544 * 1544 1545 * @returns IPRT status code. … … 1547 1548 * @param fCtl Additional control flags. Pass 0. 1548 1549 */ 1550 int audioMixerStreamCtlInternal(PAUDMIXSTREAM pMixStream, PDMAUDIOSTREAMCMD enmCmd, uint32_t fCtl) 1551 { 1552 AssertPtr(pMixStream->pConn); 1553 AssertPtr(pMixStream->pStream); 1554 1555 RT_NOREF(fCtl); 1556 1557 int rc = pMixStream->pConn->pfnStreamControl(pMixStream->pConn, pMixStream->pStream, enmCmd); 1558 1559 LogFlowFunc(("[%s] enmCmd=%ld, rc=%Rrc\n", pMixStream->pszName, enmCmd, rc)); 1560 1561 return rc; 1562 } 1563 1564 /** 1565 * Controls a mixer stream. 1566 * 1567 * @returns IPRT status code. 1568 * @param pMixStream Mixer stream to control. 1569 * @param enmCmd Mixer stream command to use. 1570 * @param fCtl Additional control flags. Pass 0. 1571 */ 1549 1572 int AudioMixerStreamCtl(PAUDMIXSTREAM pMixStream, PDMAUDIOSTREAMCMD enmCmd, uint32_t fCtl) 1550 1573 { … … 1557 1580 return rc; 1558 1581 1559 AssertPtr(pMixStream->pConn); 1560 AssertPtr(pMixStream->pStream); 1561 1562 rc = pMixStream->pConn->pfnStreamControl(pMixStream->pConn, pMixStream->pStream, enmCmd); 1563 1564 LogFlowFunc(("[%s] enmCmd=%ld, rc=%Rrc\n", pMixStream->pszName, enmCmd, rc)); 1582 rc = audioMixerStreamCtlInternal(pMixStream, enmCmd, fCtl); 1565 1583 1566 1584 int rc2 = RTCritSectLeave(&pMixStream->CritSect); 1567 AssertRC(rc2); 1585 if (RT_SUCCESS(rc)) 1586 rc = rc2; 1568 1587 1569 1588 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.