Quote:
Originally Posted by mviljamaa
The reason for using *double was that the in** and out** pointers and advancing them would work with that otherwise what I got was errors about trying to cast double to double*.
Nvm, I'll switch to WDL_FastQueue then. I get what WDL_FastQueue::Add() does but what about the others like WDL_FastQueue::Advance()?
|
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.)