QString MidiWinMM::sourcePortName( const MidiEvent& event ) const { if( event.sourcePort() ) { return m_inputDevices.value( *static_cast<const HMIDIIN *>( event.sourcePort() ) ); } return MidiClient::sourcePortName( event ); }
QString MidiAlsaSeq::sourcePortName( const MidiEvent & _event ) const { if( _event.sourcePort() ) { const snd_seq_addr_t * addr = static_cast<const snd_seq_addr_t *>( _event.sourcePort() ); return __portName( m_seqHandle, addr ); } return MidiClient::sourcePortName( _event ); }
bool ZynAddSubFxInstrument::handleMidiEvent( const MidiEvent& event, const MidiTime& time, f_cnt_t offset ) { // do not forward external MIDI Control Change events if the according // LED is not checked if( event.type() == MidiControlChange && event.sourcePort() != this && m_forwardMidiCcModel.value() == false ) { return true; } MidiEvent localEvent = event; localEvent.setChannel( 0 ); m_pluginMutex.lock(); if( m_remotePlugin ) { m_remotePlugin->processMidiEvent( localEvent, 0 ); } else { m_plugin->processMidiEvent( localEvent ); } m_pluginMutex.unlock(); return true; }
QString MidiApple::sourcePortName( const MidiEvent& event ) const { qDebug("sourcePortName return '%s'?\n", event.sourcePort()); /* if( event.sourcePort() ) { return m_inputDevices.value( *static_cast<const HMIDIIN *>( event.sourcePort() ) ); } */ return MidiClient::sourcePortName( event ); }