diff --git a/src/cwtest/cfg/main.cfg b/src/cwtest/cfg/main.cfg index 238eb1d..3c823af 100644 --- a/src/cwtest/cfg/main.cfg +++ b/src/cwtest/cfg/main.cfg @@ -314,6 +314,13 @@ amHz: 1, amMaxGain: 0.8 }, + + audioDevFileTest: { + inAudioFname: "~/temp/temp_sine_100_hz.wav", + outAudioFname: "~/temp/temp.wav", + framesPerCycle:512, + + }, diff --git a/src/cwtest/main.cpp b/src/cwtest/main.cpp index db46c6e..6a5b0bf 100644 --- a/src/cwtest/main.cpp +++ b/src/cwtest/main.cpp @@ -52,6 +52,7 @@ #endif #include "cwAudioBuf.h" +#include "cwAudioDeviceFile.h" #include "cwTcpSocket.h" #include "cwTcpSocketSrv.h" #include "cwTcpSocketTest.h" @@ -372,6 +373,7 @@ cw::rc_t spscQueueTmpl( const cw::object_t* cfg, const cw::object_t* args cw::rc_t serialPortSrvTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::serialPortSrvTest(); } cw::rc_t textBufTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::textBuf::test(); } cw::rc_t audioBufTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::audio::buf::test(); } +cw::rc_t audioDevFileTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::audio::device::file::test(args); } cw::rc_t mtxTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::mtx::test(args); } cw::rc_t midiFileTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::midi::file::test(args); } cw::rc_t audioFileTest( const cw::object_t* cfg, const cw::object_t* args, int argc, const char* argv[] ) { return cw::audiofile::test(args); } @@ -745,6 +747,7 @@ int main( int argc, const char* argv[] ) { "midiDevice", midiDeviceTest }, { "textBuf", textBufTest }, { "audioBuf", audioBufTest }, + { "audioDevFileTest", audioDevFileTest }, { "audioDevTest",audioDevTest }, { "audioDevTone", audioDevTestTone }, { "audioDevAlsa", audioDevAlsaTest },