Question: memory test! do you remember the very first line of code written for reaper...and is it still in use today?
Asked by 2022 (91.110.225.x) on January 7 2022, 4:14pm
Reply on January 7 2022, 5:40pm:It would've probably been something daft like:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nShowCmd)
...which doesn't really count? I can look in our version control history but it wouldn't tell us which line, but instead a few hundred lines. Some of which are:
#define SOURCE_TYPE_GENERIC 0
#define SOURCE_TYPE_LOOP 1
#define SOURCE_TYPE_MIXING 2
class PCM_source
{
protected:
PCM_source() { volume=1.0; pan=0.0; }
public:
virtual ~PCM_source() { }
virtual int GetType() { return SOURCE_TYPE_GENERIC; }
virtual int GetSourceNCH()=0; // return number of channels
virtual double GetLength() { return 0; } // return length in seconds
virtual void GetSamples(double time_s, int samplerate, int length_samples, int nch, double *pcmout)=0;
virtual int PropertiesWindow(HWND hwndParent) { return -1; }
virtual void GetPeakInfo(double start_t, double end_t, double *channelpeaks, int nchpeaks) { }
// (volume < 0 reverses phase)
double volume, pan;
};
This base class is