[DEV] start integration of RTAUDIO

This commit is contained in:
2014-03-07 23:48:09 +01:00
parent b666eb194d
commit f60aa1be66
41 changed files with 454 additions and 122 deletions

View File

@@ -11,12 +11,11 @@
#include <ewol/ewol.h>
#include <ewol/context/commandLine.h>
#include <appl/debug.h>
#include <appl/Windows.h>
#include <test/debug.h>
#include <test/Windows.h>
#include <ewol/object/Object.h>
#include <ewol/widget/Manager.h>
#include <ewol/context/Context.h>
#include <appl/widget/VectorDisplay.h>
/**
@@ -42,8 +41,6 @@ bool APP_Init(ewol::Context& _context) {
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
appl::widget::VectorDisplay::init(_context.getWidgetManager());
ewol::widget::Windows* basicWindows = new appl::Windows();
// create the specific windows
_context.setWindows(basicWindows);

View File

@@ -11,6 +11,9 @@
#include <test/Windows.h>
#include <ewol/widget/Label.h>
#include <etk/tool.h>
#include <eaudiofx/eaudiofx.h>
#include <eaudiofx/base/GeneratorSignal.h>
#include <eaudiofx/base/ReceiverRtAudio.h>
#undef __class__
#define __class__ "Windows"
@@ -59,11 +62,33 @@ void appl::Windows::onObjectRemove(ewol::Object * _removeObject) {
void appl::Windows::onReceiveMessage(const ewol::object::Message& _msg) {
if (_msg.getMessage() == g_eventChangeValues) {
if (_msg.getMessage() == g_eventPlay1) {
APPL_ERROR("Play Requested ...");
eaudiofx::Processing* process = new eaudiofx::Processing();
if (process == NULL) {
APPL_ERROR("can not create processing ...");
return;
}
APPL_ERROR("Create Generator ...");
eaudiofx::GeneratorSignal* generator = new eaudiofx::GeneratorSignal();
if (generator == NULL) {
APPL_ERROR("can not create Generator ...");
return;
}
generator->setName("myGenerator");
process->addBlock(generator);
APPL_ERROR("Create Receiver ...");
eaudiofx::ReceiverRtAudio* receiver = new eaudiofx::ReceiverRtAudio();
if (receiver == NULL) {
APPL_ERROR("can not create Receiver ...");
return;
}
receiver->setName("myReceiver");
process->addBlock(receiver);
process->process();
return;
}
if (_msg.getMessage() == g_eventAutoMode) {
if (_msg.getMessage() == g_eventPlay2) {
return;
}

View File

@@ -7,6 +7,6 @@
*/
#include <appl/debug.h>
#include <test/debug.h>
const char * applLogName = "example ";
const char * applLogName = "ea-fx TT ";