Thread: Get file info
View Single Post
Old 09-06-2017, 07:49 AM   #12
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by JonOsterman View Post
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.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 09-06-2017 at 08:03 AM.
Xenakios is offline   Reply With Quote