ensure that AudioEngine backend-created threads have tempo map related thread private vars set

This commit is contained in:
Paul Davis 2020-11-27 22:20:52 -07:00
parent 53c164f9fd
commit 64fd52c380

View File

@ -41,6 +41,9 @@
#include "pbd/pthread_utils.h"
#include "pbd/unknown_type.h"
#include "temporal/superclock.h"
#include "temporal/tempo.h"
#include "midi++/port.h"
#include "midi++/mmc.h"
@ -1426,6 +1429,9 @@ AudioEngine::thread_init_callback (void* arg)
PBD::notify_event_loops_about_thread_creation (pthread_self(), thread_name, 4096);
AsyncMIDIPort::set_process_thread (pthread_self());
Temporal::_thread_sample_rate = 44100; /* will change later as appropriate */
Temporal::TempoMap::fetch ();
if (arg) {
delete AudioEngine::instance()->_main_thread;
/* the special thread created/managed by the backend */