VCV Rack API v2
Loading...
Searching...
No Matches
rack::midi::Output Struct Reference

#include <midi.hpp>

Inheritance diagram for rack::midi::Output:
[legend]
Collaboration diagram for rack::midi::Output:
[legend]

Public Member Functions

 Output ()
 
 ~Output ()
 
void reset ()
 
std::vector< int > getDeviceIds () override
 
int getDefaultDeviceId () override
 
void setDeviceId (int deviceId) override
 
std::string getDeviceName (int deviceId) override
 
std::vector< int > getChannels () override
 
void sendMessage (const Message &message)
 
- Public Member Functions inherited from rack::midi::Port
 Port ()
 
virtual ~Port ()
 
DrivergetDriver ()
 
int getDriverId ()
 
void setDriverId (int driverId)
 
DevicegetDevice ()
 
int getDeviceId ()
 
int getChannel ()
 
void setChannel (int channel)
 
std::string getChannelName (int channel)
 
json_t * toJson ()
 
void fromJson (json_t *rootJ)
 

Public Attributes

OutputDeviceoutputDevice = NULL
 Not owned.
 
- Public Attributes inherited from rack::midi::Port
int channel = -1
 For MIDI output, the channel to automatically set outbound messages.
 
int driverId = -1
 
int deviceId = -1
 
Driverdriver = NULL
 Not owned.
 
Devicedevice = NULL
 
Contextcontext
 

Constructor & Destructor Documentation

◆ Output()

rack::midi::Output::Output ( )

◆ ~Output()

rack::midi::Output::~Output ( )

Member Function Documentation

◆ reset()

void rack::midi::Output::reset ( )

◆ getDeviceIds()

std::vector< int > rack::midi::Output::getDeviceIds ( )
overridevirtual

Implements rack::midi::Port.

◆ getDefaultDeviceId()

int rack::midi::Output::getDefaultDeviceId ( )
overridevirtual

Implements rack::midi::Port.

◆ setDeviceId()

void rack::midi::Output::setDeviceId ( int deviceId)
overridevirtual

Implements rack::midi::Port.

◆ getDeviceName()

std::string rack::midi::Output::getDeviceName ( int deviceId)
overridevirtual

Implements rack::midi::Port.

◆ getChannels()

std::vector< int > rack::midi::Output::getChannels ( )
overridevirtual

Implements rack::midi::Port.

◆ sendMessage()

void rack::midi::Output::sendMessage ( const Message & message)

Member Data Documentation

◆ outputDevice

OutputDevice* rack::midi::Output::outputDevice = NULL

Not owned.


The documentation for this struct was generated from the following file: