Changeset 88023 in vbox
- Timestamp:
- Mar 8, 2021 6:01:15 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143151
- Location:
- trunk/src/VBox
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r88022 r88023 618 618 619 619 PDMAUDIOSTREAMCFG CfgHost; 620 rc = DrvAudioHlpStreamCfgInitFromPcmProps(&CfgHost, &pSink->PCMProps);620 rc = PDMAudioStrmCfgInitWithProps(&CfgHost, &pSink->PCMProps); 621 621 AssertRCReturn(rc, rc); 622 622 -
trunk/src/VBox/Devices/Audio/DevHDA.cpp
r87989 r88023 2268 2268 LogFunc(("szSink=%s, szStream=%s, cChannels=%RU8\n", pMixSink->pszName, pCfg->szName, pCfg->Props.cChannels)); 2269 2269 2270 PPDMAUDIOSTREAMCFG pStreamCfg = DrvAudioHlpStreamCfgDup(pCfg);2270 PPDMAUDIOSTREAMCFG pStreamCfg = PDMAudioStrmCfgDup(pCfg); 2271 2271 if (!pStreamCfg) 2272 2272 return VERR_NO_MEMORY; … … 2370 2370 } 2371 2371 2372 DrvAudioHlpStreamCfgFree(pStreamCfg);2372 PDMAudioStrmCfgFree(pStreamCfg); 2373 2373 2374 2374 LogFlowFuncLeaveRC(rc); -
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r88022 r88023 1846 1846 AssertPtrReturn(pMixSink, VERR_INVALID_POINTER); 1847 1847 1848 PPDMAUDIOSTREAMCFG pStreamCfg = DrvAudioHlpStreamCfgDup(pCfg);1848 PPDMAUDIOSTREAMCFG pStreamCfg = PDMAudioStrmCfgDup(pCfg); 1849 1849 if (!pStreamCfg) 1850 1850 return VERR_NO_MEMORY; … … 1852 1852 if (!RTStrPrintf(pStreamCfg->szName, sizeof(pStreamCfg->szName), "%s", pCfg->szName)) 1853 1853 { 1854 DrvAudioHlpStreamCfgFree(pStreamCfg);1854 PDMAudioStrmCfgFree(pStreamCfg); 1855 1855 return VERR_BUFFER_OVERFLOW; 1856 1856 } … … 1921 1921 rc = VERR_INVALID_PARAMETER; 1922 1922 1923 DrvAudioHlpStreamCfgFree(pStreamCfg);1923 PDMAudioStrmCfgFree(pStreamCfg); 1924 1924 1925 1925 LogFlowFuncLeaveRC(rc); … … 2193 2193 /* Only (re-)create the stream (and driver chain) if we really have to. 2194 2194 * Otherwise avoid this and just reuse it, as this costs performance. */ 2195 if ( ! DrvAudioHlpStreamCfgMatchesPcmProps(&Cfg, &pStreamCC->State.Cfg.Props)2195 if ( !PDMAudioStrmCfgMatchesProps(&Cfg, &pStreamCC->State.Cfg.Props) 2196 2196 || fForce) 2197 2197 { … … 2235 2235 rc = ichac97R3MixerAddDrvStreams(pThisCC, pMixSink, &Cfg); 2236 2236 if (RT_SUCCESS(rc)) 2237 rc = DrvAudioHlpStreamCfgCopy(&pStreamCC->State.Cfg, &Cfg);2237 rc = PDMAudioStrmCfgCopy(&pStreamCC->State.Cfg, &Cfg); 2238 2238 } 2239 2239 } -
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r88015 r88023 1768 1768 Assert(DrvAudioHlpStreamCfgIsValid(pCfg)); 1769 1769 1770 PPDMAUDIOSTREAMCFG pCfgHost = DrvAudioHlpStreamCfgDup(pCfg);1770 PPDMAUDIOSTREAMCFG pCfgHost = PDMAudioStrmCfgDup(pCfg); 1771 1771 if (!pCfgHost) 1772 1772 return VERR_NO_MEMORY; … … 1786 1786 } 1787 1787 1788 DrvAudioHlpStreamCfgFree(pCfgHost);1788 PDMAudioStrmCfgFree(pCfgHost); 1789 1789 1790 1790 return rc; … … 1839 1839 Cfg.Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(Cfg.Props.cbSample, Cfg.Props.cChannels); 1840 1840 1841 if (! DrvAudioHlpStreamCfgMatchesPcmProps(&Cfg, &pThis->Out.Cfg.Props))1841 if (!PDMAudioStrmCfgMatchesProps(&Cfg, &pThis->Out.Cfg.Props)) 1842 1842 { 1843 1843 Cfg.enmDir = PDMAUDIODIR_OUT; … … 1869 1869 return VERR_INVALID_PARAMETER; 1870 1870 1871 int rc = DrvAudioHlpStreamCfgCopy(&pThis->Out.Cfg, pCfg);1871 int rc = PDMAudioStrmCfgCopy(&pThis->Out.Cfg, pCfg); 1872 1872 if (RT_SUCCESS(rc)) 1873 1873 { -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r88022 r88023 561 561 #ifdef LOG_ENABLED 562 562 LogFunc(("[%s] Requested host format:\n", pStream->szName)); 563 DrvAudioHlpStreamCfgPrint(pCfgHost);563 PDMAudioStrmCfgLog(pCfgHost); 564 564 #endif 565 565 … … 581 581 #ifdef LOG_ENABLED 582 582 LogFunc(("[%s] Acquired host format:\n", pStream->szName)); 583 DrvAudioHlpStreamCfgPrint(&CfgHostAcq);583 PDMAudioStrmCfgLog(&CfgHostAcq); 584 584 #endif 585 585 … … 658 658 659 659 /* Make a copy of the acquired host stream configuration. */ 660 rc = DrvAudioHlpStreamCfgCopy(&pStream->Host.Cfg, &CfgHostAcq);660 rc = PDMAudioStrmCfgCopy(&pStream->Host.Cfg, &CfgHostAcq); 661 661 AssertRC(rc); 662 662 … … 683 683 684 684 /* Make a copy of the guest stream configuration. */ 685 rc = DrvAudioHlpStreamCfgCopy(&pStream->Guest.Cfg, pCfgGuest);685 rc = PDMAudioStrmCfgCopy(&pStream->Guest.Cfg, pCfgGuest); 686 686 AssertRC(rc); 687 687 … … 840 840 #ifdef LOG_ENABLED 841 841 LogFunc(("[%s] Acquired host format:\n", pStream->szName)); 842 DrvAudioHlpStreamCfgPrint(&CfgHostAcq);842 PDMAudioStrmCfgLog(&CfgHostAcq); 843 843 #endif 844 844 } … … 2557 2557 LogFlowFunc(("Host=%s, Guest=%s\n", pCfgHost->szName, pCfgGuest->szName)); 2558 2558 #ifdef DEBUG 2559 DrvAudioHlpStreamCfgPrint(pCfgHost);2560 DrvAudioHlpStreamCfgPrint(pCfgGuest);2559 PDMAudioStrmCfgLog(pCfgHost); 2560 PDMAudioStrmCfgLog(pCfgGuest); 2561 2561 #endif 2562 2562 … … 3297 3297 /* Make the acquired host configuration the requested host configuration initially, 3298 3298 * in case the backend does not report back an acquired configuration. */ 3299 int rc = DrvAudioHlpStreamCfgCopy(pCfgAcq, pCfgReq);3299 int rc = PDMAudioStrmCfgCopy(pCfgAcq, pCfgReq); 3300 3300 if (RT_FAILURE(rc)) 3301 3301 { -
trunk/src/VBox/Devices/Audio/DrvAudio.h
r88022 r88023 189 189 const char *DrvAudioHlpAudDirToStr(PDMAUDIODIR enmDir); 190 190 const char *DrvAudioHlpAudFmtToStr(PDMAUDIOFMT enmFmt); 191 bool DrvAudioHlpAudFmtIsSigned(PDMAUDIOFMT enmFmt);192 uint8_t DrvAudioHlpAudFmtToBits(PDMAUDIOFMT enmFmt);191 bool PDMAudioFormatIsSigned(PDMAUDIOFMT enmFmt); 192 uint8_t PDMAudioFormatGetBits(PDMAUDIOFMT enmFmt); 193 193 /** @} */ 194 194 … … 225 225 /** @name Audio configuration helper methods. 226 226 * @{ */ 227 void DrvAudioHlpStreamCfgInit(PPDMAUDIOSTREAMCFG pCfg); 228 int DrvAudioHlpStreamCfgInitFromPcmProps(PPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps); 227 void PDMAudioStrmCfgInit(PPDMAUDIOSTREAMCFG pCfg); 228 int PDMAudioStrmCfgInitWithProps(PPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps); 229 bool PDMAudioStrmCfgMatchesProps(PCPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps); 230 int PDMAudioStrmCfgCopy(PPDMAUDIOSTREAMCFG pDstCfg, PCPDMAUDIOSTREAMCFG pSrcCfg); 231 PPDMAUDIOSTREAMCFG PDMAudioStrmCfgDup(PCPDMAUDIOSTREAMCFG pCfg); 232 void PDMAudioStrmCfgFree(PPDMAUDIOSTREAMCFG pCfg); 233 void PDMAudioStrmCfgLog(PCPDMAUDIOSTREAMCFG pCfg); 234 229 235 bool DrvAudioHlpStreamCfgIsValid(PCPDMAUDIOSTREAMCFG pCfg); 230 bool DrvAudioHlpStreamCfgMatchesPcmProps(PCPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps);231 int DrvAudioHlpStreamCfgCopy(PPDMAUDIOSTREAMCFG pDstCfg, PCPDMAUDIOSTREAMCFG pSrcCfg);232 PPDMAUDIOSTREAMCFG DrvAudioHlpStreamCfgDup(PCPDMAUDIOSTREAMCFG pCfg);233 void DrvAudioHlpStreamCfgFree(PPDMAUDIOSTREAMCFG pCfg);234 void DrvAudioHlpStreamCfgPrint(PCPDMAUDIOSTREAMCFG pCfg);235 236 /** @} */ 236 237 -
trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp
r88022 r88023 621 621 * @param enmFmt Audio format to retrieve value for. 622 622 */ 623 bool DrvAudioHlpAudFmtIsSigned(PDMAUDIOFMT enmFmt)623 bool PDMAudioFormatIsSigned(PDMAUDIOFMT enmFmt) 624 624 { 625 625 switch (enmFmt) … … 650 650 * @param enmFmt Audio format to retrieve value for. 651 651 */ 652 uint8_t DrvAudioHlpAudFmtToBits(PDMAUDIOFMT enmFmt)652 uint8_t PDMAudioFormatGetBits(PDMAUDIOFMT enmFmt) 653 653 { 654 654 switch (enmFmt) … … 742 742 * @param pCfg Stream configuration to initialize. 743 743 */ 744 void DrvAudioHlpStreamCfgInit(PPDMAUDIOSTREAMCFG pCfg)744 void PDMAudioStrmCfgInit(PPDMAUDIOSTREAMCFG pCfg) 745 745 { 746 746 AssertPtrReturnVoid(pCfg); … … 758 758 * @param pProps PCM properties to use. 759 759 */ 760 int DrvAudioHlpStreamCfgInitFromPcmProps(PPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps)760 int PDMAudioStrmCfgInitWithProps(PPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps) 761 761 { 762 762 AssertPtrReturn(pProps, VERR_INVALID_POINTER); 763 763 AssertPtrReturn(pCfg, VERR_INVALID_POINTER); 764 764 765 DrvAudioHlpStreamCfgInit(pCfg);765 PDMAudioStrmCfgInit(pCfg); 766 766 767 767 memcpy(&pCfg->Props, pProps, sizeof(PDMAUDIOPCMPROPS)); … … 798 798 * @param pProps PCM properties to match with. 799 799 */ 800 bool DrvAudioHlpStreamCfgMatchesPcmProps(PCPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps)800 bool PDMAudioStrmCfgMatchesProps(PCPDMAUDIOSTREAMCFG pCfg, PCPDMAUDIOPCMPROPS pProps) 801 801 { 802 802 AssertPtrReturn(pCfg, false); … … 809 809 * @param pCfg Audio stream configuration to free. 810 810 */ 811 void DrvAudioHlpStreamCfgFree(PPDMAUDIOSTREAMCFG pCfg)811 void PDMAudioStrmCfgFree(PPDMAUDIOSTREAMCFG pCfg) 812 812 { 813 813 if (pCfg) … … 825 825 * @param pSrcCfg Source stream configuration to copy to destination. 826 826 */ 827 int DrvAudioHlpStreamCfgCopy(PPDMAUDIOSTREAMCFG pDstCfg, PCPDMAUDIOSTREAMCFG pSrcCfg)827 int PDMAudioStrmCfgCopy(PPDMAUDIOSTREAMCFG pDstCfg, PCPDMAUDIOSTREAMCFG pSrcCfg) 828 828 { 829 829 AssertPtrReturn(pDstCfg, VERR_INVALID_POINTER); … … 845 845 /** 846 846 * Duplicates an audio stream configuration. 847 * Must be free'd with DrvAudioHlpStreamCfgFree().847 * Must be free'd with PDMAudioStrmCfgFree(). 848 848 * 849 849 * @return Duplicates audio stream configuration on success, or NULL on failure. 850 850 * @param pCfg Audio stream configuration to duplicate. 851 851 */ 852 PPDMAUDIOSTREAMCFG DrvAudioHlpStreamCfgDup(PCPDMAUDIOSTREAMCFG pCfg)852 PPDMAUDIOSTREAMCFG PDMAudioStrmCfgDup(PCPDMAUDIOSTREAMCFG pCfg) 853 853 { 854 854 AssertPtrReturn(pCfg, NULL); … … 866 866 return NULL; 867 867 868 int rc2 = DrvAudioHlpStreamCfgCopy(pDst, pCfg);868 int rc2 = PDMAudioStrmCfgCopy(pDst, pCfg); 869 869 if (RT_FAILURE(rc2)) 870 870 { 871 DrvAudioHlpStreamCfgFree(pDst);871 PDMAudioStrmCfgFree(pDst); 872 872 pDst = NULL; 873 873 } … … 882 882 * @param pCfg Stream configuration to log. 883 883 */ 884 void DrvAudioHlpStreamCfgPrint(PCPDMAUDIOSTREAMCFG pCfg) 885 { 886 if (!pCfg) 887 return; 888 889 LogFunc(("szName=%s, enmDir=%RU32 (uHz=%RU32, cBits=%RU8%s, cChannels=%RU8)\n", 890 pCfg->szName, pCfg->enmDir, 891 pCfg->Props.uHz, pCfg->Props.cbSample * 8, pCfg->Props.fSigned ? "S" : "U", pCfg->Props.cChannels)); 884 void PDMAudioStrmCfgLog(PCPDMAUDIOSTREAMCFG pCfg) 885 { 886 if (pCfg) 887 LogFunc(("szName=%s enmDir=%RU32 uHz=%RU32 cBits=%RU8%s cChannels=%RU8\n", pCfg->szName, pCfg->enmDir, 888 pCfg->Props.uHz, pCfg->Props.cbSample * 8, pCfg->Props.fSigned ? "S" : "U", pCfg->Props.cChannels)); 892 889 } 893 890 … … 999 996 uint32_t PDMAudioPropsGetBitrate(PCPDMAUDIOPCMPROPS pProps) 1000 997 { 1001 return DrvAudioHlpCalcBitrate(pProps->cbSample * 8, pProps->uHz, pProps->cChannels);998 return pProps->cbSample * pProps->cChannels * pProps->uHz * 8; 1002 999 } 1003 1000 -
trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
r88022 r88023 1365 1365 if (RT_SUCCESS(rc)) 1366 1366 { 1367 pStreamALSA->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);1367 pStreamALSA->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 1368 1368 if (!pStreamALSA->pCfg) 1369 1369 rc = VERR_NO_MEMORY; … … 1395 1395 if (RT_SUCCESS(rc)) 1396 1396 { 1397 DrvAudioHlpStreamCfgFree(pStreamALSA->pCfg);1397 PDMAudioStrmCfgFree(pStreamALSA->pCfg); 1398 1398 pStreamALSA->pCfg = NULL; 1399 1399 } -
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r88022 r88023 1593 1593 /* Create the recording device's out format based on our required audio settings. */ 1594 1594 Assert(pCAStream->pCfg == NULL); 1595 pCAStream->pCfg = DrvAudioHlpStreamCfgDup(pCfgReq);1595 pCAStream->pCfg = PDMAudioStrmCfgDup(pCfgReq); 1596 1596 if (!pCAStream->pCfg) 1597 1597 rc = VERR_NO_MEMORY; … … 1656 1656 if (pCAStream->pCfg) 1657 1657 { 1658 DrvAudioHlpStreamCfgFree(pCAStream->pCfg);1658 PDMAudioStrmCfgFree(pCAStream->pCfg); 1659 1659 pCAStream->pCfg = NULL; 1660 1660 } -
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r88022 r88023 1915 1915 if (SUCCEEDED(hr)) 1916 1916 { 1917 rc = DrvAudioHlpStreamCfgCopy(&pStreamDS->Cfg, pCfgAcq);1917 rc = PDMAudioStrmCfgCopy(&pStreamDS->Cfg, pCfgAcq); 1918 1918 if (RT_SUCCESS(rc)) 1919 1919 dsoundStreamReset(pThis, pStreamDS); … … 2094 2094 if (SUCCEEDED(hr)) 2095 2095 { 2096 rc = DrvAudioHlpStreamCfgCopy(&pStreamDS->Cfg, pCfgAcq);2096 rc = PDMAudioStrmCfgCopy(&pStreamDS->Cfg, pCfgAcq); 2097 2097 if (RT_SUCCESS(rc)) 2098 2098 dsoundStreamReset(pThis, pStreamDS); … … 2129 2129 if (SUCCEEDED(hr)) 2130 2130 { 2131 rc = DrvAudioHlpStreamCfgCopy(&pStreamDS->Cfg, &CfgAcq);2131 rc = PDMAudioStrmCfgCopy(&pStreamDS->Cfg, &CfgAcq); 2132 2132 if (RT_FAILURE(rc)) 2133 2133 break; … … 2387 2387 if (RT_SUCCESS(rc)) 2388 2388 { 2389 rc = DrvAudioHlpStreamCfgCopy(&pStreamDS->Cfg, pCfgAcq);2389 rc = PDMAudioStrmCfgCopy(&pStreamDS->Cfg, pCfgAcq); 2390 2390 if (RT_SUCCESS(rc)) 2391 2391 rc = RTCritSectInit(&pStreamDS->CritSect); -
trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp
r88022 r88023 203 203 if (RT_SUCCESS(rc)) 204 204 { 205 pStreamDbg->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);205 pStreamDbg->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 206 206 if (!pStreamDbg->pCfg) 207 207 rc = VERR_NO_MEMORY; … … 316 316 DrvAudioHlpFileDestroy(pStreamDbg->pFile); 317 317 318 DrvAudioHlpStreamCfgFree(pStreamDbg->pCfg);318 PDMAudioStrmCfgFree(pStreamDbg->pCfg); 319 319 pStreamDbg->pCfg = NULL; 320 320 } -
trunk/src/VBox/Devices/Audio/DrvHostNullAudio.cpp
r88022 r88023 214 214 if (RT_SUCCESS(rc)) 215 215 { 216 pStreamNull->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);216 pStreamNull->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 217 217 if (!pStreamNull->pCfg) 218 218 rc = VERR_NO_MEMORY; … … 258 258 if (RT_SUCCESS(rc)) 259 259 { 260 DrvAudioHlpStreamCfgFree(pStreamNull->pCfg);260 PDMAudioStrmCfgFree(pStreamNull->pCfg); 261 261 pStreamNull->pCfg = NULL; 262 262 } -
trunk/src/VBox/Devices/Audio/DrvHostOSSAudio.cpp
r88022 r88023 971 971 if (RT_SUCCESS(rc)) 972 972 { 973 pStreamOSS->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);973 pStreamOSS->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 974 974 if (!pStreamOSS->pCfg) 975 975 rc = VERR_NO_MEMORY; … … 1001 1001 if (RT_SUCCESS(rc)) 1002 1002 { 1003 DrvAudioHlpStreamCfgFree(pStreamOSS->pCfg);1003 PDMAudioStrmCfgFree(pStreamOSS->pCfg); 1004 1004 pStreamOSS->pCfg = NULL; 1005 1005 } -
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r88022 r88023 1520 1520 if (RT_SUCCESS(rc)) 1521 1521 { 1522 pStreamPA->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);1522 pStreamPA->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 1523 1523 if (!pStreamPA->pCfg) 1524 1524 rc = VERR_NO_MEMORY; … … 1553 1553 if (RT_SUCCESS(rc)) 1554 1554 { 1555 DrvAudioHlpStreamCfgFree(pStreamPA->pCfg);1555 PDMAudioStrmCfgFree(pStreamPA->pCfg); 1556 1556 pStreamPA->pCfg = NULL; 1557 1557 } -
trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp
r88022 r88023 205 205 if (RT_SUCCESS(rc)) 206 206 { 207 pStreamDbg->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);207 pStreamDbg->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 208 208 if (!pStreamDbg->pCfg) 209 209 rc = VERR_NO_MEMORY; … … 326 326 if (RT_SUCCESS(rc)) 327 327 { 328 DrvAudioHlpStreamCfgFree(pStreamDbg->pCfg);328 PDMAudioStrmCfgFree(pStreamDbg->pCfg); 329 329 pStreamDbg->pCfg = NULL; 330 330 } -
trunk/src/VBox/Main/src-client/DrvAudioRec.cpp
r88022 r88023 940 940 if (RT_SUCCESS(rc)) 941 941 { 942 pStreamAV->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);942 pStreamAV->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 943 943 if (!pStreamAV->pCfg) 944 944 rc = VERR_NO_MEMORY; … … 970 970 if (RT_SUCCESS(rc)) 971 971 { 972 DrvAudioHlpStreamCfgFree(pStreamAV->pCfg);972 PDMAudioStrmCfgFree(pStreamAV->pCfg); 973 973 pStreamAV->pCfg = NULL; 974 974 } -
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r88022 r88023 437 437 if (RT_SUCCESS(rc)) 438 438 { 439 pStreamVRDE->pCfg = DrvAudioHlpStreamCfgDup(pCfgAcq);439 pStreamVRDE->pCfg = PDMAudioStrmCfgDup(pCfgAcq); 440 440 if (!pStreamVRDE->pCfg) 441 441 rc = VERR_NO_MEMORY; … … 468 468 if (RT_SUCCESS(rc)) 469 469 { 470 DrvAudioHlpStreamCfgFree(pStreamVRDE->pCfg);470 PDMAudioStrmCfgFree(pStreamVRDE->pCfg); 471 471 pStreamVRDE->pCfg = NULL; 472 472 }
Note:
See TracChangeset
for help on using the changeset viewer.