News for hackers. Stuff that matters.
Re:C++ audio mixing library design by lisyarus on Tuesday October 18, 2022 @05:21AM (#33244808)
That's for efficiency reasons: most streams have way more logic than just filling the array, which can hardly be represented in terms of "getting the next value", and loops are good for optimization by compiler, etc. In fact, the actual sine wave implementation looks exactly the way you describe: it handles a generating function to a helper class that just fills the array https://bitbucket.org/lisyarus/psemek/src/master/libs/audio/...

There are no comments on this comment yet.