Changeset 73626 in vbox for trunk/src/VBox
- Timestamp:
- Aug 12, 2018 3:57:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r73625 r73626 945 945 946 946 int rc = RTCritSectInit(&pStream->State.CritSect); 947 if (RT_SUCCESS(rc))948 rc = RTCircBufCreate(&pStream->State.pCircBuf, _4K); /** @todo Make this configurable. */949 947 950 948 pStream->Dbg.Runtime.fEnabled = pThis->Dbg.fEnabled; … … 997 995 LogFlowFunc(("[SD%RU8]\n", pStream->u8SD)); 998 996 997 ichac97R3StreamClose(pThis, pStream); 998 999 999 int rc2 = RTCritSectDelete(&pStream->State.CritSect); 1000 1000 AssertRC(rc2); 1001 1002 if (pStream->State.pCircBuf)1003 {1004 RTCircBufDestroy(pStream->State.pCircBuf);1005 pStream->State.pCircBuf = NULL;1006 }1007 1001 1008 1002 # ifdef VBOX_WITH_AUDIO_AC97_ASYNC_IO … … 1862 1856 pCfg->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfg->Props.cBytes, pCfg->Props.cChannels); 1863 1857 1864 rc = ichac97R3MixerAddDrvStreams(pThis, pMixSink, pCfg); 1858 rc = RTCircBufCreate(&pStream->State.pCircBuf, DrvAudioHlpMilliToBytes(100 /* ms */, &pCfg->Props)); /** @todo Make this configurable. */ 1859 if (RT_SUCCESS(rc)) 1860 rc = ichac97R3MixerAddDrvStreams(pThis, pMixSink, pCfg); 1865 1861 } 1866 1862 } … … 1880 1876 { 1881 1877 RT_NOREF(pThis); 1882 RT_NOREF(pStream);1883 1878 1884 1879 LogFlowFunc(("[SD%RU8]\n", pStream->u8SD)); 1880 1881 if (pStream->State.pCircBuf) 1882 { 1883 RTCircBufDestroy(pStream->State.pCircBuf); 1884 pStream->State.pCircBuf = NULL; 1885 } 1885 1886 1886 1887 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.