Quote:
Originally Posted by JonOsterman
IPlugBase.h contained a lot of useful methods, but I can't find anything about the bits per sample (8, 16, 32, ... bits)
|
I can only repeat what I've written earlier : your plugin can NOT know the bit depth (or sample rate or number of channels) of the audio files in the DAW application. Plugins only process 32 or 64 bit floating point audio buffers.
In IPlug, you have to implement your audio processing in an implementation of this function :
virtual void ProcessDoubleReplacing(double** inputs, double** outputs, int nFrames);
As you can see, you only get 64 bit floating point buffers and need to write the audio into 64 bit floating point buffers. You have no way of knowing where the audio is coming from or where it will be going.