justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.

Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Is there a way you could explain WDL_Typedbuf member functions a little, or even the ones you would consider most useful for a custom multichanel double** buffer (meter values, audio data history)
Asked by Hannes (87.153.188.x) on February 7 2019, 3:20am
Reply on February 10 2019, 2:41am (edited at February 10 2019, 2:42am):
    Resize() and Get() are really all there is to it. For multidimensional it's probably easiest to use WDL_TypedBuf for a flat array and implement the other dimensions yourself.

  • Posted by Hannes (87.153.188.x) on February 10 2019, 9:57pm:
    If I got it right, WDL_Typedbuf is supposed to be one dimensional. Considering I'd implement by size = numChannels * framesize , how would I properly realize a TYPENAME** GetBuffer() to get a multichannel double pointer?

  • Posted by Justin on February 12 2019, 4:18am:
    Well, if you really need an array of pointers, you could create a separate WDL_PtrList into the WDL_TypedBuf. But it's probably cleaner to calculate the addresses on demand rather than using pointers...

    Your Name:   -- Site Owner's Name:  (for human-verification)


[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2019 Justin Frankel. | RSS