#include <MIDIIO.h>

Public Member Functions | |
| MIDIIO () | |
| virtual | ~MIDIIO () |
| virtual status | open () |
| bool | is_open () |
| can't open the abstract class | |
| status | close () |
| closing MIDI stream | |
| status | dump_device_info () |
| printing device info for all devices. | |
| void | dump_count_devices () |
| printing total number of devices available | |
| int | count_devices () |
| int | get_default_input_id () |
| int | get_default_output_id () |
| const PmDeviceInfo * | get_device_info (int deviceID) |
Protected Member Functions | |
| void | handle_error (PmError err) |
Protected Attributes | |
| PmStream * | mMIDIStream |
| opened stream | |
| PmDeviceID | mDeviceID |
| device ID which will/is opened. | |
| bool | mIsInput |
| bool | mIsOutput |
| bool | mIsOpen |
Static Protected Attributes | |
| static bool | mIsInitialized = false |
| static unsigned | mNumInstantiated = 0 |
| static bool | mIsPortTimeStarted = false |
| status indicators | |
| MIDIIO::MIDIIO | ( | ) |
References mIsInitialized, mIsOpen, mIsPortTimeStarted, and mNumInstantiated.
| MIDIIO::~MIDIIO | ( | ) | [virtual] |
References mIsInitialized, mIsPortTimeStarted, and mNumInstantiated.
| virtual status csl::MIDIIO::open | ( | ) | [inline, virtual] |
Reimplemented in csl::MIDIIn, and csl::MIDIOut.
| bool MIDIIO::is_open | ( | ) |
can't open the abstract class
true if MIDI stream is opened.
References mIsOpen.
Referenced by MIDIIO_test().
| status MIDIIO::close | ( | ) |
closing MIDI stream
References handle_error(), and mMIDIStream.
Referenced by initial_test(), input_test(), and output_test().
| status MIDIIO::dump_device_info | ( | ) |
printing device info for all devices.
Referenced by initial_test(), input_read_interpret_test(), input_test(), MIDIIO_test(), and output_test().
| void MIDIIO::dump_count_devices | ( | ) |
printing total number of devices available
thin wrapper for PortMidi functions. made available for flexibility.
Referenced by MIDIIO_test().
| int MIDIIO::count_devices | ( | ) |
Referenced by input_test(), MIDIIO_test(), and output_test().
| int MIDIIO::get_default_input_id | ( | ) |
Referenced by MIDIIO_test().
| int MIDIIO::get_default_output_id | ( | ) |
Referenced by MIDIIO_test().
| const PmDeviceInfo * MIDIIO::get_device_info | ( | int | deviceID | ) |
Referenced by input_test(), MIDIIO_test(), csl::MIDIOut::open(), csl::MIDIIn::open(), and output_test().
| status MIDIIO::handle_error | ( | PmError | err | ) | [protected] |
References csl::kLogError, and csl::logMsg().
Referenced by close(), csl::MIDIIn::filter_active_sensing(), csl::MIDIIn::filter_clock_msg(), csl::MIDIIn::filter_sysex(), csl::MIDIOut::open(), csl::MIDIIn::open(), csl::MIDIIn::poll(), csl::MIDIIn::read(), csl::MIDIIn::setFilter(), csl::MIDIOut::write(), csl::MIDIOut::write_Aftertouch(), csl::MIDIOut::write_ControlChange(), csl::MIDIOut::write_NoteOff(), csl::MIDIOut::write_NoteOn(), csl::MIDIOut::write_PitchWheel(), csl::MIDIOut::write_PolyTouch(), csl::MIDIOut::write_ProgramChange(), csl::MIDIOut::write_short(), and csl::MIDIOut::write_SysEX().
PmStream* csl::MIDIIO::mMIDIStream [protected] |
opened stream
Referenced by close(), csl::MIDIIn::filter_active_sensing(), csl::MIDIIn::filter_clock_msg(), csl::MIDIIn::filter_sysex(), csl::MIDIOut::open(), csl::MIDIIn::open(), csl::MIDIIn::poll(), csl::MIDIIn::read(), csl::MIDIIn::setFilter(), csl::MIDIOut::write(), csl::MIDIOut::write_Aftertouch(), csl::MIDIOut::write_ControlChange(), csl::MIDIOut::write_NoteOff(), csl::MIDIOut::write_NoteOn(), csl::MIDIOut::write_PitchWheel(), csl::MIDIOut::write_PolyTouch(), csl::MIDIOut::write_ProgramChange(), csl::MIDIOut::write_short(), and csl::MIDIOut::write_SysEX().
PmDeviceID csl::MIDIIO::mDeviceID [protected] |
device ID which will/is opened.
static to keep track of Pm_Initialize() / Pm_Terminate()
Referenced by csl::MIDIIn::MIDIIn(), csl::MIDIOut::MIDIOut(), csl::MIDIOut::open(), and csl::MIDIIn::open().
bool MIDIIO::mIsInitialized = false [static, protected] |
unsigned MIDIIO::mNumInstantiated = 0 [static, protected] |
bool MIDIIO::mIsPortTimeStarted = false [static, protected] |
bool csl::MIDIIO::mIsInput [protected] |
Referenced by csl::MIDIIn::MIDIIn(), and csl::MIDIOut::MIDIOut().
bool csl::MIDIIO::mIsOutput [protected] |
Referenced by csl::MIDIIn::MIDIIn(), and csl::MIDIOut::MIDIOut().
bool csl::MIDIIO::mIsOpen [protected] |
1.5.8