- Timestamp:
- Oct 21, 2016 10:05:29 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r64333 r64349 743 743 LogFlowFuncEnter(); 744 744 745 PAUDMIXSINK pSink;746 745 switch (enmRecSource) 747 746 { 748 747 case PDMAUDIORECSOURCE_MIC: 749 pSink = pThis->pSinkMicIn; 750 break; 748 AudioMixerSinkDestroy(pThis->pSinkMicIn); 749 pThis->pSinkMicIn = NULL; 750 break; 751 751 752 case PDMAUDIORECSOURCE_LINE: 752 pSink = pThis->pSinkLineIn; 753 break; 753 AudioMixerSinkDestroy(pThis->pSinkLineIn); 754 pThis->pSinkLineIn = NULL; 755 break; 756 754 757 default: 755 758 AssertMsgFailed(("Audio source %ld not supported\n", enmRecSource)); … … 766 769 pStream = &pDrv->LineIn; 767 770 768 if (pStream->pMixStrm)769 {770 AudioMixerSinkRemoveStream(pSink, pStream->pMixStrm);771 AudioMixerStreamDestroy(pStream->pMixStrm);772 }773 771 pStream->pMixStrm = NULL; 774 772 } … … 780 778 781 779 LogFlowFuncEnter(); 780 781 AudioMixerSinkDestroy(pThis->pSinkOut); 782 pThis->pSinkOut = NULL; 782 783 783 784 PAC97DRIVER pDrv; 784 785 RTListForEach(&pThis->lstDrv, pDrv, AC97DRIVER, Node) 785 786 { 786 if (pDrv->Out.pMixStrm) 787 { 788 AudioMixerSinkRemoveStream(pThis->pSinkOut, pDrv->Out.pMixStrm); 789 AudioMixerStreamDestroy(pDrv->Out.pMixStrm); 790 791 pDrv->Out.pMixStrm = NULL; 792 } 787 pDrv->Out.pMixStrm = NULL; 793 788 } 794 789 } … … 2480 2475 LogRel2(("AC97: Powering off ...\n")); 2481 2476 2477 /* Note: Involves mixer stream / sink destruction, so also do this here 2478 * instead of in ichac97Destruct(). */ 2479 ichac97StreamsDestroy(pThis); 2480 2482 2481 /** 2483 2482 * Note: Destroy the mixer while powering off and *not* in ichac97Destruct, … … 2538 2537 2539 2538 LogFlowFuncEnter(); 2540 2541 ichac97StreamsDestroy(pThis);2542 2539 2543 2540 PAC97DRIVER pDrv, pDrvNext;
Note:
See TracChangeset
for help on using the changeset viewer.