From 6b9ac3a54e1bc4adcb3e38172e93df6d1f53a2c6 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 14 Dec 2024 09:57:54 -0500 Subject: [PATCH] cwAudioDeviceFile.h/cpp : Added 'cycleCnt' parameter to test(). --- cwAudioDeviceFile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cwAudioDeviceFile.cpp b/cwAudioDeviceFile.cpp index e66ba17..df51504 100644 --- a/cwAudioDeviceFile.cpp +++ b/cwAudioDeviceFile.cpp @@ -1105,6 +1105,7 @@ cw::rc_t cw::audio::device::file::test( const object_t* cfg) rc_t rc2 = kOkRC; const char* ifname = nullptr; const char* ofname = nullptr; + unsigned cycleCnt = 0; struct driver_str driver = {}; struct driver_str* driver_ptr = &driver; unsigned bitsPerSample = 0; // zero indicates floating point sample format for output audio file @@ -1120,7 +1121,8 @@ cw::rc_t cw::audio::device::file::test( const object_t* cfg) // parse the test args if((rc = cfg->getv("inAudioFname",ifname, "outAudioFname",ofname, - "framesPerCycle",framesPerCycle)) != kOkRC || ifname==nullptr || ofname==nullptr ) + "framesPerCycle",framesPerCycle, + "cycleCnt",cycleCnt)) != kOkRC || ifname==nullptr || ofname==nullptr ) { rc = cwLogError(rc,"Parsing audiio device file test cfg. failed."); goto errLabel; @@ -1176,7 +1178,7 @@ cw::rc_t cw::audio::device::file::test( const object_t* cfg) } // run the audio device file - for(unsigned i=0; i<10; ++i) + for(unsigned i=0; i