#include <midiservice.h>
Public Member Functions | |
| MidiService (ServiceConfiguration *configuration) | |
| bool | init (nap::utility::ErrorState &errorState) override |
| void | enqueueEvent (std::unique_ptr< MidiEvent > event) |
| void | update (double deltaTime) override |
Public Member Functions inherited from Service | |
| UNPREFIXED_MODULE_NAME_INPUTCASE | Service (ServiceConfiguration *configuration) |
| virtual void | getDependentServices (std::vector< rtti::TypeInfo > &dependencies) override |
| virtual void | shutdown () override |
| Service (ServiceConfiguration *configuration) | |
| virtual | ~Service () |
| Core & | getCore () |
| const Core & | getCore () const |
| std::string | getTypeName () const |
| const Module & | getModule () const |
| Service (Service &)=delete | |
| Service & | operator= (const Service &)=delete |
| Service (Service &&)=delete | |
| Service & | operator= (Service &&)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from Service | |
| virtual void | registerObjectCreators (rtti::Factory &factory) |
| virtual void | getDependentServices (std::vector< rtti::TypeInfo > &dependencies) |
| virtual void | created () |
| virtual void | preUpdate (double deltaTime) |
| virtual void | postUpdate (double deltaTime) |
| virtual void | preShutdown () |
| virtual void | shutdown () |
| virtual void | preResourcesLoaded () |
| virtual void | postResourcesLoaded () |
| template<typename SERVICE_CONFIG > | |
| SERVICE_CONFIG * | getConfiguration () |
| template<typename SERVICE_CONFIG > | |
| const SERVICE_CONFIG * | getConfiguration () const |
| std::string | getIniFilePath () const |
| std::string | getIniFilePath (const std::string &appendix) const |
Service keeping tracking of opened midi input ports and processing incoming messages.
| MidiService | ( | ServiceConfiguration * | configuration | ) |
| void enqueueEvent | ( | std::unique_ptr< MidiEvent > | event | ) |
Enqueue a freshly received midi event from the input thread.
|
overridevirtual |
Initializes the service
| errorState | contains the error message on failure |
Reimplemented from Service.
|
overridevirtual |
Processes all received midi events
Reimplemented from Service.