Commit graph

19 commits

Author SHA1 Message Date
David Robillard
8ec3e5fb54 Fix deprecated-copy warnings
It's long been a guideline (and IIRC a Weff-c++ warning) that either all, or
none, of the copy methods should be defined, but this became a standard warning
in GCC9.  Presumably to account for a later language change though I'm not sure
which.

I don't remember why the ChanMapping copy constructor can't just be a simple
copy (it's just a map of POD), but figure it's safer to just copy what that
does.
2019-12-09 23:25:59 +01:00
Robin Gareus
bb27d10fd4
Fix potential ambiguous state-restore
Don't allow uninitialized argument values in case of corrupt XML
state.
2019-08-20 04:11:32 +02:00
Robin Gareus
a22f918d9d
Update libardour GPL boilerplate and (C) from git log 2019-08-03 15:53:16 +02:00
Robin Gareus
8f1cc261a2 Remove cruft. ChanCount::INFINITE is not used 2017-04-19 11:43:08 +02:00
Tim Mayberry
89815f7d59 Change header include order to try and avoid INFINITE define on windows
This doesn't seem to be an issue with a newer version of the Mingw-w64 headers
that I use (5.0.2rc2).
2017-04-19 18:08:40 +10:00
Tim Mayberry
d53c66973c Use XMLNode::get/set_property in ARDOUR::ChanMapping class
This avoids possible demotion of unsigned integers when using the
add_property(char*, long) API. Which is unlikely to have ever been an issue but
worth noting.
2017-04-19 09:36:50 +10:00
Paul Davis
cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Robin Gareus
e27096b054 consistent count/n_total API 2016-04-08 18:16:19 +02:00
Robin Gareus
e92b7b5ebb implement save/load channel-maps 2016-04-02 01:11:05 +02:00
Robin Gareus
c25962aa7e add chan-mapping count/size() 2016-04-01 22:57:56 +02:00
Robin Gareus
884cb35523 plugin-pin-map:
* fix MIDI-bypass
* prepare combined channel-map report (for GUI)
* fix route failed config return
2016-03-31 20:28:48 +02:00
Robin Gareus
700513e411 C++11/C++98 compat mainly for OSX/clang 2016-03-29 21:50:40 +02:00
Robin Gareus
e0dbb95b72 extend channel-map
add tests for identity matrix, monotonic, subset,
which are handy to verify if inplace processing is possible.
add `unset()` for upcoming GUI work.
2016-03-29 19:49:37 +02:00
Robin Gareus
79d63d8701 prepare Plugin Pin Management 2016-03-25 19:08:21 +01:00
Robin Gareus
470255effa add wrapper for ChanMapping::get()
The boolean "valid" is implicit, get() returns -1 (really UINT32_MAX)
This simplifies upcoming lua bindings
2016-01-24 03:21:24 +01:00
David Robillard
96dcffcb22 More robust plugin I/O mapping.
This does not change the actual mapping logic, but makes the application of
the mapping much more robust.  If there is no valid mapping for a given port,
that port is connected to silence (instead of crashing messily and/or via a
failed assertion).

Also tolerate mappings that nonsensically map to a buffer that is not present
(this particularly happens for MIDI ports in some cases) as a temporary fix.
The mapping logic needs work and/or our concept of just how much MIDI we support
in a route needs simplification...


git-svn-id: svn://localhost/ardour2/branches/3.0@10262 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-21 04:51:04 +00:00
David Robillard
0906b39918 Fix my name :)
git-svn-id: svn://localhost/ardour2/branches/3.0@9302 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-06 15:00:16 +00:00
David Robillard
bb9cc45cd2 Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red.  I don't know the emacs equivalent...


git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14 16:10:01 +00:00
David Robillard
80c8866303 Add mising file.
git-svn-id: svn://localhost/ardour2/branches/3.0@5059 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-05-07 14:17:19 +00:00