13
0

Expose virtual-keyboard port as async-port

This commit is contained in:
Robin Gareus 2019-10-18 15:16:43 +02:00
parent 0d86819a2b
commit eade673771
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 11 additions and 7 deletions

View File

@ -34,6 +34,7 @@
namespace ARDOUR {
class AsyncMIDIPort;
class MidiPort;
class Port;
@ -94,10 +95,7 @@ public:
}
/* Virtual MIDI keyboard output */
boost::shared_ptr<ARDOUR::Port> vkbd_output_port () const
{
return boost::dynamic_pointer_cast<MidiPort> (_vkbd_out);
}
boost::shared_ptr<AsyncMIDIPort> vkbd_output_port () const;
void set_midi_port_states (const XMLNodeList&);
std::list<XMLNode*> get_midi_port_states () const;

View File

@ -118,6 +118,7 @@ class Curve;
namespace ARDOUR {
class Amp;
class AsyncMIDIPort;
class AudioEngine;
class AudioFileSource;
class AudioRegion;
@ -1200,7 +1201,8 @@ public:
boost::shared_ptr<Port> mmc_input_port () const;
boost::shared_ptr<Port> scene_input_port () const;
boost::shared_ptr<Port> scene_output_port () const;
boost::shared_ptr<Port> vkbd_output_port () const;
boost::shared_ptr<AsyncMIDIPort> vkbd_output_port () const;
/* synchronous MIDI ports used for synchronization */

View File

@ -147,4 +147,8 @@ MidiPortManager::get_midi_port_states () const
return s;
}
boost::shared_ptr<AsyncMIDIPort>
MidiPortManager::vkbd_output_port () const
{
return boost::dynamic_pointer_cast<AsyncMIDIPort> (_vkbd_out);
}

View File

@ -692,7 +692,7 @@ Session::scene_input_port () const
return _midi_ports->scene_input_port ();
}
boost::shared_ptr<ARDOUR::Port>
boost::shared_ptr<AsyncMIDIPort>
Session::vkbd_output_port () const
{
return _midi_ports->vkbd_output_port ();