On Mon, Dec 12, 2011 at 7:31 PM, Harry van Haaren <harryhaaren@email-addr-hiddenwrote:
> On Tue, Dec 13, 2011 at 3:24 AM, Iain Duncan <iainduncanlists@email-addr-hiddenwrote:
>
>> I guess I need some kind of serialization to send this over a jack
>> ringbuffer, but I've zero experience with serialization in C++.
>>
>
> I don't really understand what your asking here, you want to be able to
> set the order of the messages in the ringbuffer?
>
> Its a FIFO queue, as in First In - First Out. So the order of the messages
> is the same as you write them...
> Perhaps I'm misunderstanding you :S
>
Yup, what I'm talking about is being able to put a data structure on to the
ring buffer. It needs be castable to a const *char, so the structure needs
a way to be converted to a string. I can't just put my DataMessage
structure on there because there is no automatic conversion from my own
struct to a string. I know how to do this in Python, but not sure what the
best way to do it in C or C++ is.
thanks
Iain
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Dec 13 08:15:02 2011
This archive was generated by hypermail 2.1.8 : Tue Dec 13 2011 - 08:15:02 EET