mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Use glib event callback in Mackie Control support to set thread-local variables
This commit is contained in:
parent
b7d22508fa
commit
ce7ea4ec36
3 changed files with 15 additions and 0 deletions
|
|
@ -22,6 +22,9 @@
|
|||
#include "pbd/convert.h"
|
||||
#include "pbd/error.h"
|
||||
|
||||
#include "temporal/superclock.h"
|
||||
#include "temporal/tempo.h"
|
||||
|
||||
#include "ardour/control_protocol_manager.h"
|
||||
#include "ardour/gain_control.h"
|
||||
#include "ardour/session.h"
|
||||
|
|
@ -376,3 +379,11 @@ ControlProtocol::notify_stripable_selection_changed (StripableNotificationListPt
|
|||
{
|
||||
_last_selected = *sp;
|
||||
}
|
||||
|
||||
void
|
||||
ControlProtocol::event_loop_precall ()
|
||||
{
|
||||
Temporal::set_thread_sample_rate (session->sample_rate());
|
||||
Temporal::TempoMap::fetch ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue