void MidiOutPort_linux::closeAll(void) { switch (getSelect()) { case OSS_MIDI_SELECT: oss_output->closeAll(); break; case ALSA_MIDI_SELECT: alsa_output->closeAll(); break; default: unknown_output->closeAll(); break; } }
int MidiOutPort_linux::getChannelOffset(void) const { switch (getSelect()) { case OSS_MIDI_SELECT: return oss_output->getChannelOffset(); break; case ALSA_MIDI_SELECT: return alsa_output->getChannelOffset(); break; default: return unknown_output->getChannelOffset(); break; } }
int MidiOutPort_linux::setTrace(int aState) { switch (getSelect()) { case OSS_MIDI_SELECT: return oss_output->setTrace(aState); break; case ALSA_MIDI_SELECT: return alsa_output->setTrace(aState); break; default: return unknown_output->setTrace(aState); break; } }
int MidiOutPort_linux::sysex(uchar* array, int size) { switch (getSelect()) { case OSS_MIDI_SELECT: return oss_output->sysex(array, size); break; case ALSA_MIDI_SELECT: return alsa_output->sysex(array, size); break; default: return unknown_output->sysex(array, size); break; } }
void MidiOutPort_linux::setChannelOffset(int aChannel) { switch (getSelect()) { case OSS_MIDI_SELECT: oss_output->setChannelOffset(aChannel); break; case ALSA_MIDI_SELECT: alsa_output->setChannelOffset(aChannel); break; default: unknown_output->setChannelOffset(aChannel); break; } }
int MidiOutPort_linux::rawsend(int command) { switch (getSelect()) { case OSS_MIDI_SELECT: return oss_output->rawsend(command); break; case ALSA_MIDI_SELECT: return alsa_output->rawsend(command); break; default: return unknown_output->rawsend(command); break; } }
int MidiOutPort_linux::open(void) { switch (getSelect()) { case OSS_MIDI_SELECT: return oss_output->open(); break; case ALSA_MIDI_SELECT: return alsa_output->open(); break; default: return unknown_output->open(); break; } }
const char* MidiOutPort_linux::getName(int i) { switch (getSelect()) { case OSS_MIDI_SELECT: return oss_output->getName(i); break; case ALSA_MIDI_SELECT: return alsa_output->getName(i); break; default: return unknown_output->getName(i); break; } }
uint16_t Buzzer::getSound(uint16_t time) { switch(sound_) { case Keyboard: return getKeyboard(time); case Info: return getInfo(time); case Save: return getSave(time); case Select: return getSelect(time); case ProgramComplete: return getProgramComplete(time); case StartProgram: return getStartProgram(time); case ReversedPolarity: return getReversedPolarity(time); case Error: return getError(time); case Off: default: return getOff(time); } }
void MidiOutPort_linux::setAndOpenPort(int aPort) { switch (getSelect()) { case OSS_MIDI_SELECT: oss_output->setPort(aPort); oss_output->open(); break; case ALSA_MIDI_SELECT: alsa_output->setPort(aPort); alsa_output->open(); break; default: unknown_output->setPort(aPort); unknown_output->open(); break; } }
uint16_t Buzzer::getStartProgram(uint16_t time) { return getSelect(time); }