I have a very simple standalone plugin, which is compiled in debug conf on Windows7, however, the audio is superchoppy, although it depends on the sample rate chosen. Here’s my code, am I doing something wrong?
you have one analog_osc instance for all channels, so the block meant for the next block is found on the next channel, making the period progress in a wrong way.
In that case it points towards the oscillator. I don’t see anything wrong, except what you just fixed…
I don’t know that class, but I assume, doOscillate() returns the next value and advances the phase. What does update()?
What makes you sure, it works “just fine itself”?
Is the system in the clear, or is it under stress?
Is the life time persistent with the processor, or is the oscillator silently recreated on each call?
compiling in release didn’t help (the process CPU% is somewhere at 1%, so yeah…)
I’ve also noticed that the sound is basically on for half a cycle and then off for another. These intervals are proportionate to the buffer size i choose, so my best bet is that I am still writing to the buffers incorrectly.
My code was fine all along, it was the audio driver. Gotta love linux-audio
I was able to find a very specific combination of input/output involving the motherboard audio output which works.
If you’ll excuse me, I’m off to buying a linux compatible audio interface.