<div class="gmail_quote">On Tue, Dec 13, 2011 at 3:24 AM, Iain Duncan <span dir="ltr"><<a href="mailto:iainduncanlists@gmail.com">iainduncanlists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>I guess I need some kind of serialization to send this over a jack ringbuffer, but I've zero experience with serialization in C++.<br></div></blockquote><div><br>I don't really understand what your asking here, you want to be able to set the order of the messages in the ringbuffer?<br>
<br>Its a FIFO queue, as in First In - First Out. So the order of the messages is the same as you write them...<br>Perhaps I'm misunderstanding you :S<br><br>W.r.t OSC, there's 2 ways to run an OSC server, polling or having callbacks. If you have callbacks it involves a having a seperate OscServer thread. This means you'll need to use a seperate RingBuffer too, as the JACK ringbuffer is a SRSW queue. (single read, single write)<br>
<br>If you're using the GUI thread to poll the OscServer, then you can use the same RingBuffer and you'll have more control over the order of GUI / OSC events... <br><br>Then again, if you can do the "ordering" on the recieving side of the RingBuffers, then it really makes no difference :D<br>
All the best, -H<br></div></div>