mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
MCP: debug tracing
git-svn-id: svn://localhost/ardour2/branches/3.0@11870 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f89d0ea069
commit
a8094bb49c
1 changed files with 6 additions and 2 deletions
|
|
@ -349,16 +349,20 @@ Strip::notify_gain_changed (bool force_update)
|
||||||
{
|
{
|
||||||
if (_route) {
|
if (_route) {
|
||||||
Fader & fader = gain();
|
Fader & fader = gain();
|
||||||
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("route %1 gain change, update fader %2 on port %3\n",
|
|
||||||
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("route %1 gain change, update fader %2 on port %3 in-use ? %4\n",
|
||||||
_route->name(),
|
_route->name(),
|
||||||
fader.raw_id(),
|
fader.raw_id(),
|
||||||
_surface->port().output_port().name()));
|
_surface->port().output_port().name(),
|
||||||
|
fader.in_use()));
|
||||||
if (!fader.in_use()) {
|
if (!fader.in_use()) {
|
||||||
float gain_value = gain_to_slider_position (_route->gain_control()->get_value());
|
float gain_value = gain_to_slider_position (_route->gain_control()->get_value());
|
||||||
// check that something has actually changed
|
// check that something has actually changed
|
||||||
if (force_update || gain_value != _last_gain_written) {
|
if (force_update || gain_value != _last_gain_written) {
|
||||||
_surface->write (builder.build_fader (fader, gain_value));
|
_surface->write (builder.build_fader (fader, gain_value));
|
||||||
_last_gain_written = gain_value;
|
_last_gain_written = gain_value;
|
||||||
|
} else {
|
||||||
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("fader not updated because gain still equals %1\n", gain_value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue