/[svn]/linuxsampler/trunk/src/engines/InstrumentManager.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/InstrumentManager.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1321 by schoenebeck, Tue Sep 4 01:12:49 2007 UTC revision 1771 by iliev, Wed Sep 10 15:02:24 2008 UTC
# Line 70  namespace LinuxSampler { Line 70  namespace LinuxSampler {
70                  bool operator<(const instrument_id_t& o) const {                  bool operator<(const instrument_id_t& o) const {
71                      return (Index < o.Index || (Index == o.Index && FileName < o.FileName));                      return (Index < o.Index || (Index == o.Index && FileName < o.FileName));
72                  }                  }
73    
74                    bool operator==(const instrument_id_t& o) const {
75                        return (Index == o.Index && FileName == o.FileName);
76                    }
77                };
78    
79                /**
80                 * Rather abstract informations about an instrument.
81                 */
82                struct instrument_info_t {
83                    String InstrumentName;
84                    String FormatVersion;
85                    String Product;
86                    String Artists;
87                    uint8_t KeyBindings[128];
88                    uint8_t KeySwitchBindings[128];
89              };              };
90    
91              /**              /**
# Line 157  namespace LinuxSampler { Line 173  namespace LinuxSampler {
173               *         instrument editor is registered to the sampler               *         instrument editor is registered to the sampler
174               */               */
175              virtual void LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) = 0;              virtual void LaunchInstrumentEditor(instrument_id_t ID) throw (InstrumentManagerException) = 0;
176    
177                /**
178                 * Returns a list of instrument IDs of the provided instrument
179                 * file in case the provided file's format is supported.
180                 *
181                 * @throws InstrumentManagerException if the format of the
182                 *         provided instrument file is not supported
183                 */
184                virtual std::vector<instrument_id_t> GetInstrumentFileContent(String File) throw (InstrumentManagerException) = 0;
185    
186                /**
187                 * Get detailed informations about the provided instrument file.
188                 *
189                 * @throws InstrumentManagerException if the format of the
190                 *         provided instrument file is not supported
191                 */
192                virtual instrument_info_t GetInstrumentInfo(instrument_id_t ID) throw (InstrumentManagerException) = 0;
193      };      };
194    
195  }  }

Legend:
Removed from v.1321  
changed lines
  Added in v.1771

  ViewVC Help
Powered by ViewVC