Re: [LAD] a *simple* ring buffer, comments pls?

2011-08-20 Thread Gabriel Beddingfield
On 08/20/2011 01:24 PM, Emanuel Rumpf wrote: 2011/7/20 Kai Vehmanen: PS My plan B is to wait and see for another 10 years (and many more long threads about this topic on this list), and then I can at least just start using C++0x already... ;) It's called C++11 now and accepted by ISO al

Re: [LAD] a *simple* ring buffer, comments pls?

2011-08-20 Thread Emanuel Rumpf
2011/7/20 Kai Vehmanen : > > PS My plan B is to wait and see for another 10 years (and many more >   long threads about this topic on this list), and then >   I can at least just start using C++0x already... ;) It's called C++11 now and accepted by ISO already ;) 2011 April 11 --- C++11, passed

Re: [LAD] Inter thread Communication: Design Approach

2011-08-20 Thread Harry van Haaren
On Sat, Aug 20, 2011 at 4:04 PM, Gabriel Beddingfield wrote: > IMHO, You're more or less going in the right direction. There's two main > ways to structure your EventType.. and they are both essentially using > inheritance. We'll call them "The C way" and "The C++ Way". They are more > or less

Re: [LAD] [LAA][ANNOUNCE] New LV2 Soft Synth: The Newtonator v0.5.0

2011-08-20 Thread Michael Bechard
Ok, glad to hear lv2_jack_host seems to be working, let me know how it goes. Regarding lv2rack, that is an effects host, not a synth host, so yeah, it'll crash if it tries to load The Newtonator :) Thanks, Michael Bechard From: Harry van Haaren To: Michael Be

Re: [LAD] Inter thread Communication: Design Approach

2011-08-20 Thread Arnold Krille
On Saturday 20 August 2011 17:04:46 Gabriel Beddingfield wrote: > DISADVANTAGE: Using dynamic_cast<> uses RTTI and can have a performance > penalty... but guards against programming mistakes (throwing an > exception if cast is invalid). Switch to reinterpret_cast<> if speed is > a problem. This

Re: [LAD] Inter thread Communication: Design Approach

2011-08-20 Thread Gabriel Beddingfield
On 08/20/2011 09:19 AM, Harry van Haaren wrote: My (hacky?) solution: Create a class, call it "Event". Runtime now looks like so: 1. Create a EventType enum, set the details 2. Write those "Events" into the ringbuffer 3. Switch based on EventType, and handle the event. While not terribly ugly, t

[LAD] Inter thread Communication: Design Approach

2011-08-20 Thread Harry van Haaren
Hey All, I'm looking to improve a program's design with regards to how it communicates between the "jack" thread and its "main/gui" thread. Please note I'm *not* looking for implementation details like what ringbuffer to use, this has been discussed here before. Conditions: Gui needs to feed data

Re: [LAD] [LAA][ANNOUNCE] New LV2 Soft Synth: The Newtonator v0.5.0

2011-08-20 Thread Harry van Haaren
On Fri, Aug 19, 2011 at 10:00 PM, Michael Bechard wrote: > Also, I'm not familiar with lv2host (can't find it in Synaptic...), could > you point me at the version you're using? > zynJackU: 6-0tstudio2 (thats from the "TangoStudio" repo) Apologies, with lv2host I meant Lv2Rack, which i think is b