/[svn]/qsampler/trunk/src/qsamplerChannel.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannel.h

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

revision 341 by capela, Tue Jan 18 11:29:01 2005 UTC revision 382 by capela, Mon Feb 14 15:42:38 2005 UTC
# Line 69  public: Line 69  public:
69      // Instrument file and index.      // Instrument file and index.
70      QString& instrumentFile();      QString& instrumentFile();
71      int      instrumentNr();      int      instrumentNr();
72        QString& instrumentName();
73      int      instrumentStatus();      int      instrumentStatus();
74      bool     loadInstrument(const QString& sInstrumentFile, int iInstrumentNr);      bool     loadInstrument(const QString& sInstrumentFile, int iInstrumentNr);
75        
76      // MIDI input driver (DEPRECATED).      // MIDI input driver (DEPRECATED).
77      QString& midiDriver();      QString& midiDriver();
78      bool     setMidiDriver(const QString& sMidiDriver);      bool     setMidiDriver(const QString& sMidiDriver);
# Line 100  public: Line 101  public:
101      float    volume();      float    volume();
102      bool     setVolume(float fVolume);      bool     setVolume(float fVolume);
103    
104        // Istrument name remapper.
105        void     updateInstrumentName();
106    
107      // Channel info structure map executive.      // Channel info structure map executive.
108      bool     updateChannelInfo();      bool     updateChannelInfo();
109    
# Line 120  public: Line 124  public:
124      void contextMenuEvent(QContextMenuEvent *pEvent);      void contextMenuEvent(QContextMenuEvent *pEvent);
125    
126      // Retrieve the available instrument name(s) of an instrument file (.gig).      // Retrieve the available instrument name(s) of an instrument file (.gig).
127      static QString     getInstrumentName (const QString& sInstrumentFile, int iInstrumentNr);      static QString     getInstrumentName (const QString& sInstrumentFile,
128      static QStringList getInstrumentList (const QString& sInstrumentFile);                                                          int iInstrumentNr, bool bInstrumentNames);
129        static QStringList getInstrumentList (const QString& sInstrumentFile,
130      // Instrument name(s) retrieval mode.                                                          bool bInstrumentNames);
     static bool instrumentNames();  
     static void setInstrumentNames (bool bInstrumentNames);  
131    
132  private:  private:
133    
# Line 137  private: Line 139  private:
139    
140      // Sampler channel info map.      // Sampler channel info map.
141      QString m_sEngineName;      QString m_sEngineName;
142        QString m_sInstrumentName;
143      QString m_sInstrumentFile;      QString m_sInstrumentFile;
144      int     m_iInstrumentNr;      int     m_iInstrumentNr;
145      int     m_iInstrumentStatus;      int     m_iInstrumentStatus;
# Line 147  private: Line 150  private:
150      QString m_sAudioDriver;         // DEPRECATED.      QString m_sAudioDriver;         // DEPRECATED.
151      int     m_iAudioDevice;      int     m_iAudioDevice;
152      float   m_fVolume;      float   m_fVolume;
   
     // Retrieve mode for available instrument name(s)  
         // from an instrument file (.gig).  
         static bool g_bInstrumentNames;  
153  };  };
154    
155  #endif  // __qsamplerChannel_h  #endif  // __qsamplerChannel_h

Legend:
Removed from v.341  
changed lines
  Added in v.382

  ViewVC Help
Powered by ViewVC