Changeset 89143 in vbox for trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
- Timestamp:
- May 18, 2021 3:04:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89141 r89143 1951 1951 PCPDMDRVREG pDrvReg = g_aBackends[0].pDrvReg; 1952 1952 bool fWithDrvAudio = false; 1953 uint8_t cPcmSampleBit = 0; 1954 uint8_t cPcmChannels = 0; 1955 uint32_t uPcmHz = 0; 1956 bool fPcmSigned = true; 1953 1957 1954 1958 int rc; … … 1993 1997 1994 1998 case VKAT_TEST_OPT_COUNT: 1995 break;1999 return RTMsgErrorExitFailure("Not yet implemented!"); 1996 2000 1997 2001 case VKAT_TEST_OPT_DEV: … … 2000 2004 2001 2005 case VKAT_TEST_OPT_PAUSE: 2002 break;2006 return RTMsgErrorExitFailure("Not yet implemented!"); 2003 2007 2004 2008 case VKAT_TEST_OPT_OUTDIR: … … 2009 2013 2010 2014 case VKAT_TEST_OPT_PCM_BIT: 2011 /** @todo r=bird: the X suffix means: "fingers off!" */ 2012 TstCust.TestTone.Props.cbSampleX = ValueUnion.u8 / 8 /* bit */; 2015 cPcmSampleBit = ValueUnion.u8; 2013 2016 break; 2014 2017 2015 2018 case VKAT_TEST_OPT_PCM_CHAN: 2016 /** @todo r=bird: the X suffix means: "fingers off!" */ 2017 TstCust.TestTone.Props.cChannelsX = ValueUnion.u8; 2019 cPcmChannels = ValueUnion.u8; 2018 2020 break; 2019 2021 2020 2022 case VKAT_TEST_OPT_PCM_HZ: 2021 TstCust.TestTone.Props.uHz = ValueUnion.u32;2023 uPcmHz = ValueUnion.u32; 2022 2024 break; 2023 2025 2024 2026 case VKAT_TEST_OPT_PCM_SIGNED: 2025 TstCust.TestTone.Props.fSigned = ValueUnion.f;2027 fPcmSigned = ValueUnion.f; 2026 2028 break; 2027 2029 … … 2051 2053 */ 2052 2054 RTTestBanner(g_hTest); 2055 2056 /* Initialize the custom test parameters with sensible defaults if nothing else is given. */ 2057 PDMAudioPropsInit(&TstCust.TestTone.Props, 2058 cPcmSampleBit ? cPcmSampleBit / 8 : 2 /* 16-bit */, fPcmSigned, cPcmChannels ? cPcmChannels : 2, 2059 uPcmHz ? uPcmHz : 44100); 2053 2060 2054 2061 /* For now all tests have the same test environment. */
Note:
See TracChangeset
for help on using the changeset viewer.