Commit 98a033a 1 parent 862cbd0 commit 98a033a Copy full SHA for 98a033a
File tree 1 file changed +23
-3
lines changed
1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+ #ifdef REACTIVE_ENABLED
2
+ #include " RtAudio.h"
3
+ #endif
4
+
1
5
#include " gl_window.hpp"
2
6
#include " gl_shader.hpp"
3
7
#include " autofilter.hpp"
22
26
#include < cctype>
23
27
#include " keymap.hpp"
24
28
#include " ipc_client.hpp"
25
- #define version_info " v1.6 .0"
29
+ #define version_info " v1.7 .0"
26
30
#ifdef SYPHON_SERVER
27
31
#include " syphon.h"
28
32
#endif
@@ -156,6 +160,15 @@ namespace acidcam {
156
160
stereo_ = true ;
157
161
stereo_mode = true ;
158
162
}
163
+
164
+ #ifdef REACTIVE_ENABLED
165
+
166
+ float amp = 1 .0f ;
167
+
168
+ void setAmp (float f) {
169
+ amp = f;
170
+ }
171
+ #endif
159
172
160
173
161
174
#ifdef SPOUT_SERVER
@@ -565,7 +578,7 @@ namespace acidcam {
565
578
if (paused)
566
579
return ;
567
580
568
- if (time_manip == true && time_keys[0 ]) {
581
+ if (time_manip == true && time_keys[0 ]) {
569
582
if (time_manip_f > 1.0 ) {
570
583
time_manip_f -= 0.05 ;
571
584
std::cout << " acidcam: Time: " << time_manip_f << " shifted back.\n " ;
@@ -575,7 +588,6 @@ namespace acidcam {
575
588
std::cout << " acidcam: Time: " << time_manip_f << " shifted forward.\n " ;
576
589
}
577
590
578
-
579
591
if (restore_value == true ) {
580
592
time_manip_f = timeval ;
581
593
restore_value = false ;
@@ -585,6 +597,14 @@ namespace acidcam {
585
597
if (time_manip)
586
598
timeval = time_manip_f;
587
599
600
+ #ifdef REACTIVE_ENABLED
601
+ if (time_manip) {
602
+ time_manip_f += (amp * 100.0 );
603
+ timeval = time_manip_f;
604
+ std::cout << " acidcam: audio timeval: " << timeval << " \n " ;
605
+ }
606
+ #endif
607
+
588
608
589
609
590
610
if (enable_cubeapp) {
You can’t perform that action at this time.
0 commit comments