From 42793ac14e8c5209c1580b4e312c668769c7b67b Mon Sep 17 00:00:00 2001 From: theGreatWhiteShark Date: Wed, 7 Jun 2023 21:53:34 +0200 Subject: [PATCH] PortMidiDriver: tweaks error logging 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". --- src/core/IO/PortMidiDriver.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/IO/PortMidiDriver.cpp b/src/core/IO/PortMidiDriver.cpp index dc567326d..344b7408d 100644 --- a/src/core/IO/PortMidiDriver.cpp +++ b/src/core/IO/PortMidiDriver.cpp @@ -164,7 +164,6 @@ PortMidiDriver::~PortMidiDriver() void PortMidiDriver::handleOutgoingControlChange( int param, int value, int channel ) { if ( m_pMidiOut == nullptr ) { - ERRORLOG( "m_pMidiOut = nullptr " ); return; } @@ -367,7 +366,6 @@ std::vector PortMidiDriver::getOutputPortList() void PortMidiDriver::handleQueueNote(Note* pNote) { if ( m_pMidiOut == nullptr ) { - ERRORLOG( "m_pMidiOut = nullptr " ); return; } @@ -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; } @@ -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; }