Hi everyone! I’m new to JUCE and am trying to build a simple Audio Sample Playback plugin to learn the ropes a little bit. In my PluginProcessor.h I store a unique_ptr to an AudioSampleBuffer, set that pointer once I read the contents of a file in the PluginProcessor ctor, and then copy the contents (sample by sample) to the buffer passed into processBlock().
When I run the plugin, things seem to be working properly except that the audio playback is extremely glitchy and sounds terrible compared to how the sample should sound. Any help on this would be much appreciated!