Another Spectrogram

I could use some help with my Spectrogram plugin.

Everything builds fine, but it seems like the processor buffer has 0 samples after using it in audacity.

Any ideas?

If the buffer in the plugins processBlock is always size 0, then something isn’t setup correctly with the host/system.
If your spectrogram processor has a buffer of size 0, then there’s a bug somewhere in your code. I’d start with making sure the buffer from the processBlock is being passed to any additional processors correctly.
Without any additional information, that’s the best I can give you. It’s very hard to debug with so little to work with. It’s kind of like saying “I need help finding a house, its somewhere in England, any ideas?”

Thanks for the reply.

It seems as though it is the buffer in the processBlock is size 0. I copied what was returned by getNumberofSamples function to a member variable in the Spectrogram class and displayed the value as text in the UI.

Have you tried other DAWs and/or the Standalone app?

No other DAWs, standalone app shows the same thing (although standalone isn’t connected to an Audio source).

Maybe try it with the JUCE plugin host or a DAW like Reaper to see if you get the same.

Also try running with a debugger and putting a breakpoint in the processBlock() to inspect the actual object passed in to rule out that it’s not just the label not updating properly.

Good idea with the debugger. I tried that, and it looks like it’s updating, but with 0 samples.

@ImJimmi Tried the audio plugin host and same issue occurred.

@ImJimmi @icebreakeraudio I figured out that the plugin is somehow creating infinite channels, thus never being able to iterate through them.

Solved by restricting the number of busses to 1

1 Like