ASPiK SDK
|
With the custom view pointers cached, we can now add the code to grab data from the audio thread and save it in the lock-free ring buffer. This only involves writing code to queue up the data. Note that we only have one queue and will only be storing the left channel information - as an exercise you might try modifying this for stereo operation. Check the code in the demo project and note the single call to the enqueue() function (the volume control code is very basic and is used for the two linkable volume knobs so you can safely ignore it here):
Check the rest of the function to see how the enqueue( ) function is called for the other two channel I/O configurations. With this code in place, we cah switch back to the PluginCore::processMessage( ) function and fill in the code for the GUI timer ping message - that will complete this section of the plugin.