Mercurial > hg > beaglert
comparison include/Midi.h @ 248:6ca9b3f557bf
Removed useless debug lines
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 28 Apr 2016 17:09:42 +0100 |
parents | af1e662400fc |
children | e4392164b458 |
comparison
equal
deleted
inserted
replaced
247:feadb63cff32 | 248:6ca9b3f557bf |
---|---|
182 * | 182 * |
183 */ | 183 */ |
184 | 184 |
185 int numAvailableMessages(){ | 185 int numAvailableMessages(){ |
186 int num = (writePointer - readPointer + messages.size() ) % messages.size(); | 186 int num = (writePointer - readPointer + messages.size() ) % messages.size(); |
187 if(num > 0){ | |
188 int a = a +1; | |
189 a = readPointer; | |
190 } | |
191 return num; | 187 return num; |
192 } | 188 } |
193 | 189 |
194 /** | 190 /** |
195 * Get the oldest channel message in the buffer. | 191 * Get the oldest channel message in the buffer. |