comparison plugin/plugins/SamplePlayer.h @ 75:163f3428bbe0

* Create temporary directory, cleaned up on exit, and use it to store (inter alia) audio samples for the sample-player plugin. * Ensure newly added layers always have unique names * Make sure configure pairs for real-time plugins are stored in the configuration Xml along with parameter & program settings
author Chris Cannam
date Mon, 10 Apr 2006 13:52:32 +0000
parents d397ea0a79f5
children b2067aff8cd6
comparison
equal deleted inserted replaced
74:47fd14e29813 75:163f3428bbe0
60 static void connectPort(LADSPA_Handle, unsigned long, LADSPA_Data *); 60 static void connectPort(LADSPA_Handle, unsigned long, LADSPA_Data *);
61 static void activate(LADSPA_Handle); 61 static void activate(LADSPA_Handle);
62 static void run(LADSPA_Handle, unsigned long); 62 static void run(LADSPA_Handle, unsigned long);
63 static void deactivate(LADSPA_Handle); 63 static void deactivate(LADSPA_Handle);
64 static void cleanup(LADSPA_Handle); 64 static void cleanup(LADSPA_Handle);
65 static char *configure(LADSPA_Handle, const char *, const char *);
65 static const DSSI_Program_Descriptor *getProgram(LADSPA_Handle, unsigned long); 66 static const DSSI_Program_Descriptor *getProgram(LADSPA_Handle, unsigned long);
66 static void selectProgram(LADSPA_Handle, unsigned long, unsigned long); 67 static void selectProgram(LADSPA_Handle, unsigned long, unsigned long);
67 static int getMidiController(LADSPA_Handle, unsigned long); 68 static int getMidiController(LADSPA_Handle, unsigned long);
68 static void runSynth(LADSPA_Handle, unsigned long, 69 static void runSynth(LADSPA_Handle, unsigned long,
69 snd_seq_event_t *, unsigned long); 70 snd_seq_event_t *, unsigned long);
88 long m_ons[Polyphony]; 89 long m_ons[Polyphony];
89 long m_offs[Polyphony]; 90 long m_offs[Polyphony];
90 int m_velocities[Polyphony]; 91 int m_velocities[Polyphony];
91 long m_sampleNo; 92 long m_sampleNo;
92 93
94 QString m_samplePath;
93 QString m_program; 95 QString m_program;
94 std::vector<std::pair<QString, QString> > m_samples; // program name, path 96 std::vector<std::pair<QString, QString> > m_samples; // program name, path
95 bool m_sampleSearchComplete; 97 bool m_sampleSearchComplete;
96 int m_pendingProgramChange; 98 int m_pendingProgramChange;
97 99