monome / libmonome

makes writing applications for Monomes easy.
ISC License
302 stars 158 forks source link

buffer for proto/osc.c incoming messages #5

Closed wrl closed 13 years ago

wrl commented 14 years ago

currently, there is only a facility for buffering one incoming /press message...in the case of an asynchronous application in which monome_next_event() is called rarely, there is an overwhelming chance that events will be missed.

propose implementing a basic ringbuffer.

wrl commented 14 years ago

but wait! since we only call lo_server_recv_noblock() once per monome_next_event(), it should be okay. the liblo documentation suggests that only one message is dispatched per call to said recv function.