summaryrefslogtreecommitdiff
path: root/libs/surfaces/osc/osc.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2017-05-11 10:51:40 -0700
committerLen Ovens <len@ovenwerks.net>2017-05-11 10:52:38 -0700
commita51e82a29edb1161579371415034a906cd7e5550 (patch)
tree39d83d792c01b26c12f6a72ca8d4877578a96deb /libs/surfaces/osc/osc.cc
parentfeab5ef91e0b817bf9f92c1ad98a666852285e12 (diff)
OSC: Initialize all surface struct values on creation
Diffstat (limited to 'libs/surfaces/osc/osc.cc')
-rw-r--r--libs/surfaces/osc/osc.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 47b36da9bb..2ca8c73c3a 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -1425,6 +1425,8 @@ OSC::get_surface (lo_address addr)
// No surface create one with default values
OSCSurface s;
s.remote_url = r_url;
+ s.no_clear = false;
+ s.jogmode = JOG;
s.bank = 1;
s.bank_size = default_banksize; // need to find out how many strips there are
s.strip_types = default_strip; // 159 is tracks, busses, and VCAs (no master/monitor)
@@ -1434,6 +1436,7 @@ OSC::get_surface (lo_address addr)
s.expand = 0;
s.expand_enable = false;
s.cue = false;
+ s.aux = 0;
s.strips = get_sorted_stripables(s.strip_types, s.cue);
s.nstrips = s.strips.size();