Skip to content

Commit

Permalink
PortMidiDriver: tweaks error logging
Browse files Browse the repository at this point in the history
having no output device in handle* function is not an error. The user might just have set an input device and left Output on "None".
  • Loading branch information
theGreatWhiteShark committed Jun 8, 2023
1 parent 92124e4 commit 42793ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/IO/PortMidiDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ PortMidiDriver::~PortMidiDriver()
void PortMidiDriver::handleOutgoingControlChange( int param, int value, int channel )
{
if ( m_pMidiOut == nullptr ) {
ERRORLOG( "m_pMidiOut = nullptr " );
return;
}

Expand Down Expand Up @@ -367,7 +366,6 @@ std::vector<QString> PortMidiDriver::getOutputPortList()
void PortMidiDriver::handleQueueNote(Note* pNote)
{
if ( m_pMidiOut == nullptr ) {
ERRORLOG( "m_pMidiOut = nullptr " );
return;
}

Expand Down Expand Up @@ -402,7 +400,6 @@ void PortMidiDriver::handleQueueNote(Note* pNote)
void PortMidiDriver::handleQueueNoteOff( int channel, int key, int velocity )
{
if ( m_pMidiOut == nullptr ) {
ERRORLOG( "m_pMidiOut = nullptr " );
return;
}

Expand All @@ -425,7 +422,6 @@ void PortMidiDriver::handleQueueNoteOff( int channel, int key, int velocity )
void PortMidiDriver::handleQueueAllNoteOff()
{
if ( m_pMidiOut == nullptr ) {
ERRORLOG( "m_pMidiOut = nullptr " );
return;
}

Expand Down

0 comments on commit 42793ac

Please sign in to comment.