- Timestamp:
- May 17, 2021 11:26:25 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144468
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89119 r89127 828 828 * @param cMsSchedulingHint The scheduling hint in milliseconds. 829 829 * @param ppStream Where to return the stream pointer on success. 830 * @param pCfgAcq Where to return the actual (well, not 831 * necessarily when using DrvAudio, but probably 832 * the same) stream config on success (not used as 833 * input). 830 834 */ 831 835 static int audioTestDriverStackStreamCreateOutput(PAUDIOTESTDRVSTACK pDrvStack, PCPDMAUDIOPCMPROPS pProps, 832 836 uint32_t cMsBufferSize, uint32_t cMsPreBuffer, uint32_t cMsSchedulingHint, 833 PPDMAUDIOSTREAM *ppStream )837 PPDMAUDIOSTREAM *ppStream, PPDMAUDIOSTREAMCFG pCfgAcq) 834 838 { 835 839 char szTmp[PDMAUDIOSTRMCFGTOSTRING_MAX + 16]; … … 881 885 if (RT_SUCCESS(rc)) 882 886 { 887 *pCfgAcq = CfgReq; /** @todo PDMIAUDIOCONNECTOR::pfnStreamCreate only does one utterly pointless change to the two configs (enmLayout) from what I can tell... */ 888 pCfgAcq->Props = (*ppStream)->Props; 883 889 RTMsgInfo("Created backend stream: %s\n", PDMAudioStrmCfgToString(&CfgReq, szTmp, sizeof(szTmp))); 884 890 return rc; … … 932 938 { 933 939 *ppStream = &pStreamAt->Core; 940 *pCfgAcq = pStreamAt->Cfg; 934 941 return VINF_SUCCESS; 935 942 } … … 944 951 { 945 952 *ppStream = &pStreamAt->Core; 953 *pCfgAcq = pStreamAt->Cfg; 946 954 return VINF_SUCCESS; 947 955 } … … 2049 2057 * Open a stream for the output. 2050 2058 */ 2051 PPDMAUDIOSTREAM pStream = NULL; 2059 PDMAUDIOSTREAMCFG CfgAcq; 2060 PPDMAUDIOSTREAM pStream = NULL; 2052 2061 rc = audioTestDriverStackStreamCreateOutput(&DrvStack, &WaveFile.Props, cMsBufferSize, 2053 cMsPreBuffer, cMsSchedulingHint, &pStream );2062 cMsPreBuffer, cMsSchedulingHint, &pStream, &CfgAcq); 2054 2063 if (RT_SUCCESS(rc)) 2055 2064 { … … 2098 2107 } 2099 2108 else if (audioTestDriverStackStreamIsOkay(&DrvStack, pStream)) 2100 RTThreadSleep(RT_MIN(RT_MAX(1, cMsSchedulingHint), 256));2109 RTThreadSleep(RT_MIN(RT_MAX(1, CfgAcq.Device.cMsSchedulingHint), 256)); 2101 2110 else 2102 2111 {
Note:
See TracChangeset
for help on using the changeset viewer.