mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
OSC: Initialize all surface struct values on creation
This commit is contained in:
parent
feab5ef91e
commit
a51e82a29e
1 changed files with 3 additions and 0 deletions
|
|
@ -1425,6 +1425,8 @@ OSC::get_surface (lo_address addr)
|
||||||
// No surface create one with default values
|
// No surface create one with default values
|
||||||
OSCSurface s;
|
OSCSurface s;
|
||||||
s.remote_url = r_url;
|
s.remote_url = r_url;
|
||||||
|
s.no_clear = false;
|
||||||
|
s.jogmode = JOG;
|
||||||
s.bank = 1;
|
s.bank = 1;
|
||||||
s.bank_size = default_banksize; // need to find out how many strips there are
|
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)
|
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 = 0;
|
||||||
s.expand_enable = false;
|
s.expand_enable = false;
|
||||||
s.cue = false;
|
s.cue = false;
|
||||||
|
s.aux = 0;
|
||||||
s.strips = get_sorted_stripables(s.strip_types, s.cue);
|
s.strips = get_sorted_stripables(s.strip_types, s.cue);
|
||||||
|
|
||||||
s.nstrips = s.strips.size();
|
s.nstrips = s.strips.size();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue