|
From: Christian S. <chr...@ep...> - 2002-11-23 20:58:50
|
I read the evo-0.0.6 code to become acquainted with the basics involved in this project and audio applications in general (as I've never written an audio app before). I appreciate that the code isn't that complex, so you can easily get an overview of the most relevant parts. It left me with some minor questions however, that I hope somebody can explain to me (I guess that's most likely Benno but if anybody else can tell me too... :) Is there a reason that int types were always used for actually bool types or is it just some kind of habit? Is there any benefit of using this double_to_int() function [audiovoice.cpp] and the asm code in it, instead of a normal type cast? I was a bit surprised about the ring buffer. I expected a buffer similar to the ones which are used in ASIO or Gigasampler. These consume less CPU time but on the other hand of course, latency values are dependent on the buffer size. How about giving the user the choice which kind of buffer to use? And finally I was a little bit unsure about the purpose of the check_wrap() method in the RingBuffer template. It ensures a sequential reading of 2*WRAP_ELEMTS = 2048 elements, right??? If so, shouldn't there a be a check if there are enough elements available for reading? Regards, Christian |