Changeset 94993 in vbox for trunk/src/VBox/Devices/Audio/testcase
- Timestamp:
- May 12, 2022 1:57:54 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 151418
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/testcase/tstAudioMixBuffer.cpp
r93944 r94993 78 78 RTTESTI_CHECK(PDMAudioPropsGetBitrate(&Cfg441StereoU32) == 44100*8*8); 79 79 80 RTTESTI_CHECK(AudioHlpPcmPropsAreValid (&Cfg441StereoS16));81 RTTESTI_CHECK(AudioHlpPcmPropsAreValid (&Cfg441StereoU16) == false); /* go figure */82 RTTESTI_CHECK(AudioHlpPcmPropsAreValid (&Cfg441StereoU32) == false); /* go figure */80 RTTESTI_CHECK(AudioHlpPcmPropsAreValidAndSupported(&Cfg441StereoS16)); 81 RTTESTI_CHECK(AudioHlpPcmPropsAreValidAndSupported(&Cfg441StereoU16) == false); /* go figure */ 82 RTTESTI_CHECK(AudioHlpPcmPropsAreValidAndSupported(&Cfg441StereoU32) == false); /* go figure */ 83 83 84 84 … … 210 210 ); 211 211 212 RTTESTI_CHECK(AudioHlpPcmPropsAreValid (&config));212 RTTESTI_CHECK(AudioHlpPcmPropsAreValidAndSupported(&config)); 213 213 214 214 uint32_t cBufSize = _1K; … … 658 658 uint32_t const cFrames = RTRandU32Ex(16, RT_ELEMENTS(aSrcFrames)); 659 659 PDMAUDIOPCMPROPS const CfgSrc = PDMAUDIOPCMPROPS_INITIALIZER(2 /*cbSample*/, true /*fSigned*/, 2 /*ch*/, uFromHz, false /*fSwap*/); 660 RTTESTI_CHECK(AudioHlpPcmPropsAreValid (&CfgSrc));660 RTTESTI_CHECK(AudioHlpPcmPropsAreValidAndSupported(&CfgSrc)); 661 661 AUDIOMIXBUF MixBuf; 662 662 RTTESTI_CHECK_RC_OK_RETV(AudioMixBufInit(&MixBuf, "NewPeekMixBuf", &CfgSrc, cFrames)); … … 668 668 /* Peek state (destination) is uToHz 2ch S16 */ 669 669 PDMAUDIOPCMPROPS const CfgDst = PDMAUDIOPCMPROPS_INITIALIZER(2 /*cbSample*/, true /*fSigned*/, 2 /*ch*/, uToHz, false /*fSwap*/); 670 RTTESTI_CHECK(AudioHlpPcmPropsAreValid (&CfgDst));670 RTTESTI_CHECK(AudioHlpPcmPropsAreValidAndSupported(&CfgDst)); 671 671 AUDIOMIXBUFPEEKSTATE PeekState; 672 672 RTTESTI_CHECK_RC_OK_RETV(AudioMixBufInitPeekState(&MixBuf, &PeekState, &CfgDst));
Note:
See TracChangeset
for help on using the changeset viewer.