View Single Post
Old 06-21-2015, 03:59 PM   #14
Human being with feelings
Join Date: Jun 2015
Posts: 348

Originally Posted by Xenakios View Post
Hmm, well without seeing your code that put the double*'s into the std::queue I can't determine if what you were attempting was correct to begin with. It might have seemed to work just by luck.

The WDL_FastQueue works so that you put stuff into it with Add. With Available you can check how much stuff the queue has. When you have enough, you can copy elements to a destination buffer with GetToBuf. Then you need to use Advance to advance the queue the same amount you copied into the destination. (GetToBuf by itself won't advance the queue.)
So what about SetFromBuf()?

Last edited by mviljamaa; 06-21-2015 at 04:18 PM.
mviljamaa is offline   Reply With Quote