monome/libmonome

buffer for proto/osc.c incoming messages

Closed this issue · 1 comments

wrl commented

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

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.