From 42cb454c24e2772696c281860e333becffc2e2ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 28 Mar 2012 04:51:46 +0000 Subject: Remove pointless int32 typedef. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4127 a436a847-0d15-0410-975c-d299462d15a1 --- src/mdaEPiano.h | 68 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src/mdaEPiano.h') diff --git a/src/mdaEPiano.h b/src/mdaEPiano.h index 8a0977d..b24c7ce 100644 --- a/src/mdaEPiano.h +++ b/src/mdaEPiano.h @@ -42,11 +42,11 @@ private: struct VOICE //voice state { - LvzInt32 delta; //sample playback - LvzInt32 frac; - LvzInt32 pos; - LvzInt32 end; - LvzInt32 loop; + int32_t delta; //sample playback + int32_t frac; + int32_t pos; + int32_t end; + int32_t loop; float env; //envelope float dec; @@ -57,17 +57,17 @@ struct VOICE //voice state float outl; float outr; - LvzInt32 note; //remember what note triggered this + int32_t note; //remember what note triggered this }; struct KGRP //keygroup { - LvzInt32 root; //MIDI root note - LvzInt32 high; //highest note - LvzInt32 pos; - LvzInt32 end; - LvzInt32 loop; + int32_t root; //MIDI root note + int32_t high; //highest note + int32_t pos; + int32_t end; + int32_t loop; }; class mdaEPiano : public AudioEffectX @@ -76,39 +76,39 @@ public: mdaEPiano(audioMasterCallback audioMaster); ~mdaEPiano(); - virtual void process(float **inputs, float **outputs, LvzInt32 sampleframes); - virtual void processReplacing(float **inputs, float **outputs, LvzInt32 sampleframes); - virtual LvzInt32 processEvents(LvzEvents* events); + virtual void process(float **inputs, float **outputs, int32_t sampleframes); + virtual void processReplacing(float **inputs, float **outputs, int32_t sampleframes); + virtual int32_t processEvents(LvzEvents* events); - virtual void setProgram(LvzInt32 program); + virtual void setProgram(int32_t program); virtual void setProgramName(char *name); virtual void getProgramName(char *name); - virtual void setParameter(LvzInt32 index, float value); - virtual float getParameter(LvzInt32 index); - virtual void getParameterLabel(LvzInt32 index, char *label); - virtual void getParameterDisplay(LvzInt32 index, char *text); - virtual void getParameterName(LvzInt32 index, char *text); - virtual void setBlockSize(LvzInt32 blockSize); + virtual void setParameter(int32_t index, float value); + virtual float getParameter(int32_t index); + virtual void getParameterLabel(int32_t index, char *label); + virtual void getParameterDisplay(int32_t index, char *text); + virtual void getParameterName(int32_t index, char *text); + virtual void setBlockSize(int32_t blockSize); virtual void resume(); - virtual bool getOutputProperties (LvzInt32 index, LvzPinProperties* properties); - virtual bool getProgramNameIndexed (LvzInt32 category, LvzInt32 index, char* text); - virtual bool copyProgram (LvzInt32 destination); + virtual bool getOutputProperties (int32_t index, LvzPinProperties* properties); + virtual bool getProgramNameIndexed (int32_t category, int32_t index, char* text); + virtual bool copyProgram (int32_t destination); virtual bool getEffectName (char* name); virtual bool getVendorString (char* text); virtual bool getProductString (char* text); - virtual LvzInt32 getVendorVersion () {return 1;} - virtual LvzInt32 canDo (char* text); + virtual int32_t getVendorVersion () {return 1;} + virtual int32_t canDo (char* text); - virtual LvzInt32 getNumMidiInputChannels () { return 1; } + virtual int32_t getNumMidiInputChannels () { return 1; } - LvzInt32 guiUpdate; - void guiGetDisplay(LvzInt32 index, char *label); + int32_t guiUpdate; + void guiGetDisplay(int32_t index, char *label); private: void update(); //my parameter update - void noteOn(LvzInt32 note, LvzInt32 velocity); - void fillpatch(LvzInt32 p, const char *name, float p0, float p1, float p2, float p3, float p4, + void noteOn(int32_t note, int32_t velocity); + void fillpatch(int32_t p, const char *name, float p0, float p1, float p2, float p3, float p4, float p5, float p6, float p7, float p8, float p9, float p10,float p11); mdaEPianoProgram* programs; @@ -116,15 +116,15 @@ private: #define EVENTBUFFER 120 #define EVENTS_DONE 99999999 - LvzInt32 notes[EVENTBUFFER + 8]; //list of delta|note|velocity for current block + int32_t notes[EVENTBUFFER + 8]; //list of delta|note|velocity for current block ///global internal variables KGRP kgrp[34]; VOICE voice[NVOICES]; - LvzInt32 activevoices, poly; + int32_t activevoices, poly; short *waves; float width; - LvzInt32 size, sustain; + int32_t size, sustain; float lfo0, lfo1, dlfo, lmod, rmod; float treb, tfrq, tl, tr; float tune, fine, random, stretch, overdrive; -- cgit v1.2.1