[DEV] start work on dynamic chain

This commit is contained in:
2015-02-01 22:21:03 +01:00
parent 12a60900cc
commit 29f8b24b2b
6 changed files with 137 additions and 72 deletions

View File

@@ -32,6 +32,7 @@ class testOutWrite {
airtalgo::format_int16,
"default",
"WriteMode");
m_interface->setReadwrite();
}
void run() {
double phase=0;
@@ -100,6 +101,7 @@ class testOutWriteCallback {
airtalgo::format_int16,
"default",
"WriteMode+Callback");
m_interface->setReadwrite();
m_interface->setWriteCallback(std::bind(&testOutWriteCallback::onDataNeeded,
this,
std::placeholders::_1,
@@ -232,6 +234,7 @@ class testInRead {
airtalgo::format_int16,
"default",
"WriteMode");
m_interface->setReadwrite();
}
void run() {
m_interface->start();
@@ -468,10 +471,10 @@ TEST(TestALL, testFormat) {
std::shared_ptr<airtio::Manager> manager;
manager = airtio::Manager::create("testApplication");
std::vector<airtalgo::format> listFormat;
listFormat.push_back(airtalgo::format_int16);
listFormat.push_back(airtalgo::format_int16_on_int32);
//listFormat.push_back(airtalgo::format_int16);
//listFormat.push_back(airtalgo::format_int16_on_int32);
listFormat.push_back(airtalgo::format_int32);
listFormat.push_back(airtalgo::format_float);
//listFormat.push_back(airtalgo::format_float);
for (auto &it : listFormat) {
std::shared_ptr<testOutCallbackType> process = std::make_shared<testOutCallbackType>(manager, 48000, 2, it);
process->run();