Mercurial > hg > beaglert
diff include/Midi.h @ 199:b128e3ea84ff
Fixed midi docs, implentation and example
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Fri, 05 Feb 2016 06:49:33 +0000 |
parents | 265a527f8be8 |
children | 869f5e703844 |
line wrap: on
line diff
--- a/include/Midi.h Fri Feb 05 06:17:35 2016 +0000 +++ b/include/Midi.h Fri Feb 05 06:49:33 2016 +0000 @@ -147,7 +147,8 @@ /** * Get the oldest channel message in the buffer. * - * You should not call this function when numAvailableMessages() returns 0. + * If this method is called when numAvailableMessages()==0, then + * a message with all fields set to zero is returned. * @param type the type of the message to retrieve * @return a copy of the oldest message of the give type in the buffer */ @@ -187,7 +188,7 @@ /** * Enable the input MidiParser. * - * If the parser is enabled, readFrom() will return an error code. + * If the parser is enabled, getInput() will return an error code. * Midi messages should instead be retrieved via, e.g.: getMidiParser()->getNextChannelMessage(); * * @param enable true to enable the input MidiParser, false to disable it. @@ -247,6 +248,7 @@ static bool staticConstructed; static void staticConstructor(); private: + int _getInput(); void readInputLoop(); void writeOutputLoop(); int outputPort;