Changeset 73647 in vbox
- Timestamp:
- Aug 14, 2018 11:35:39 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r73626 r73647 1016 1016 } 1017 1017 1018 if (pStream->State.pCircBuf) 1019 { 1020 RTCircBufDestroy(pStream->State.pCircBuf); 1021 pStream->State.pCircBuf = NULL; 1022 } 1023 1018 1024 LogFlowFuncLeave(); 1019 1025 } … … 1856 1862 pCfg->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfg->Props.cBytes, pCfg->Props.cChannels); 1857 1863 1858 rc = RTCircBufCreate(&pStream->State.pCircBuf, DrvAudioHlpMilliToBytes(100 /* ms */, &pCfg->Props)); /** @todo Make this configurable. */ 1864 if (pStream->State.pCircBuf) 1865 { 1866 RTCircBufDestroy(pStream->State.pCircBuf); 1867 pStream->State.pCircBuf = NULL; 1868 } 1869 1870 rc = RTCircBufCreate(&pStream->State.pCircBuf, DrvAudioHlpMilliToBytes(500 /* ms */, &pCfg->Props)); /** @todo Make this configurable. */ 1859 1871 if (RT_SUCCESS(rc)) 1860 1872 rc = ichac97R3MixerAddDrvStreams(pThis, pMixSink, pCfg); … … 1878 1890 1879 1891 LogFlowFunc(("[SD%RU8]\n", pStream->u8SD)); 1880 1881 if (pStream->State.pCircBuf)1882 {1883 RTCircBufDestroy(pStream->State.pCircBuf);1884 pStream->State.pCircBuf = NULL;1885 }1886 1892 1887 1893 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.