From c1a0e7708b0871f296c8e089a58ec0bd59a5c0ee Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 11 Nov 2022 13:15:35 -0500 Subject: [PATCH] cwMidiAlsa.cpp : Added TODO comments. --- cwMidiAlsa.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cwMidiAlsa.cpp b/cwMidiAlsa.cpp index 18e8ef7..3ed87e6 100644 --- a/cwMidiAlsa.cpp +++ b/cwMidiAlsa.cpp @@ -134,12 +134,18 @@ namespace cw // if no input if( rc == -EAGAIN ) + { + // TODO: report or at least count error break; - + } + // if input buffer overrun if( rc == -ENOSPC ) + { + // TODO: report or at least count error break; - + } + // get the device this event arrived from if( p->prvRcvDev==NULL || p->prvRcvDev->clientId != ev->source.client ) p->prvRcvDev = _cmMpClientIdToDev(p,ev->source.client); @@ -150,7 +156,7 @@ namespace cw if( p->prvRcvDev == NULL || p->prvRcvPort == NULL ) continue; - + //printf("%i %x\n",ev->type,ev->type); //printf("dev:%i port:%i ch:%i %i\n",ev->source.client,ev->source.port,ev->data.note.channel,ev->data.note.note);