summaryrefslogtreecommitdiff
path: root/synth/in_synth_cli.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synth/in_synth_cli.cpp')
-rw-r--r--synth/in_synth_cli.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/synth/in_synth_cli.cpp b/synth/in_synth_cli.cpp
index 4334978..a21e1f7 100644
--- a/synth/in_synth_cli.cpp
+++ b/synth/in_synth_cli.cpp
@@ -8,6 +8,7 @@
#include "util.h"
#include "communication.h"
#include "globals.h"
+#include "load.h"
using namespace std;
@@ -49,8 +50,16 @@ void lock_and_load_program(int prg_no, string file)
{
do_request(prg_no, true);
- //TODO load the program
- usleep(5000000);
+ if (load_program(file,program_settings[prg_no]))
+ {
+ cout << "success" << endl;
+ programfile[prg_no]=file;
+ }
+ else
+ cout << "failed" << endl;
+
+ for (int i=0;i<N_CHANNELS;i++)
+ channel[i]->maybe_reload_program(prg_no);
do_request(prg_no, false);
}