Advertisement
Guest User

Untitled

a guest
Dec 28th, 2012
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.47 KB | None | 0 0
  1. /*
  2.   ==============================================================================
  3.  
  4.     This file was auto-generated!
  5.  
  6.     It contains the basic startup code for a Juce application.
  7.  
  8.   ==============================================================================
  9. */
  10.  
  11. #ifndef __PLUGINPROCESSOR_H_AD750AEC__
  12. #define __PLUGINPROCESSOR_H_AD750AEC__
  13.  
  14. #include "../JuceLibraryCode/JuceHeader.h"
  15.  
  16.  
  17. //==============================================================================
  18. /**
  19. */
  20. class SimpleSynthAudioProcessor  : public AudioProcessor
  21. {
  22. public:
  23.     //==============================================================================
  24.     SimpleSynthAudioProcessor();
  25.     ~SimpleSynthAudioProcessor();
  26.  
  27.     //==============================================================================
  28.     void prepareToPlay (double sampleRate, int samplesPerBlock);
  29.     void releaseResources();
  30.  
  31.     void processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages);
  32.  
  33.     //==============================================================================
  34.     AudioProcessorEditor* createEditor();
  35.     bool hasEditor() const;
  36.  
  37.     //==============================================================================
  38.     const String getName() const;
  39.  
  40.     int getNumParameters();
  41.  
  42.     float getParameter (int index);
  43.     void setParameter (int index, float newValue);
  44.  
  45.     const String getParameterName (int index);
  46.     const String getParameterText (int index);
  47.  
  48.     const String getInputChannelName (int channelIndex) const;
  49.     const String getOutputChannelName (int channelIndex) const;
  50.     bool isInputChannelStereoPair (int index) const;
  51.     bool isOutputChannelStereoPair (int index) const;
  52.  
  53.     bool acceptsMidi() const;
  54.     bool producesMidi() const;
  55.  
  56.     //==============================================================================
  57.     int getNumPrograms();
  58.     int getCurrentProgram();
  59.     void setCurrentProgram (int index);
  60.     const String getProgramName (int index);
  61.     void changeProgramName (int index, const String& newName);
  62.  
  63.     //==============================================================================
  64.     void getStateInformation (MemoryBlock& destData);
  65.     void setStateInformation (const void* data, int sizeInBytes);
  66.  
  67. private:
  68.     //==============================================================================
  69.     JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SimpleSynthAudioProcessor);
  70. };
  71.  
  72. #endif  // __PLUGINPROCESSOR_H_AD750AEC__
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement