summaryrefslogtreecommitdiffstats
path: root/src/engine/JackAudioDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/JackAudioDriver.cpp')
-rw-r--r--src/engine/JackAudioDriver.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/engine/JackAudioDriver.cpp b/src/engine/JackAudioDriver.cpp
index fe5fa0b7..15c8f785 100644
--- a/src/engine/JackAudioDriver.cpp
+++ b/src/engine/JackAudioDriver.cpp
@@ -36,6 +36,7 @@
#include "EventSource.hpp"
#include "AudioBuffer.hpp"
#include "ProcessSlave.hpp"
+#include "JackMidiDriver.hpp"
using namespace std;
@@ -173,6 +174,9 @@ JackAudioDriver::activate()
_engine.lash_driver()->set_jack_client_name(jack_client_get_name(_client));
#endif*/
}
+
+ if (!_engine.midi_driver())
+ _engine.set_midi_driver(new JackMidiDriver(_client));
}
@@ -382,3 +386,12 @@ JackAudioDriver::_buffer_size_cb(jack_nframes_t nframes)
} // namespace Ingen
+Ingen::JackAudioDriver*
+new_jack_audio_driver(
+ Ingen::Engine& engine,
+ std::string server_name,
+ jack_client_t* jack_client)
+{
+ return new Ingen::JackAudioDriver(engine, server_name, jack_client);
+}
+