/[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 400 by capela, Mon Feb 21 15:02:58 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                // Special instrument file/name/number settler.
76        bool     setInstrument(const QString& sInstrumentFile, int iInstrumentNr);
77    
78      // MIDI input driver (DEPRECATED).      // MIDI input driver (DEPRECATED).
79      QString& midiDriver();      QString& midiDriver();
80      bool     setMidiDriver(const QString& sMidiDriver);      bool     setMidiDriver(const QString& sMidiDriver);
# Line 100  public: Line 103  public:
103      float    volume();      float    volume();
104      bool     setVolume(float fVolume);      bool     setVolume(float fVolume);
105    
106        // Istrument name remapper.
107        void     updateInstrumentName();
108    
109      // Channel info structure map executive.      // Channel info structure map executive.
110      bool     updateChannelInfo();      bool     updateChannelInfo();
111    
     // Reset channel method.  
     bool     resetChannel();  
   
112      // Channel setup dialog form.      // Channel setup dialog form.
113      bool     channelSetup(QWidget *pParent);      bool     channelSetup(QWidget *pParent);
114    
115        // Reset channel method.
116        bool     channelReset();
117    
118      // Message logging methods (brainlessly mapped to main form's).      // Message logging methods (brainlessly mapped to main form's).
119      void     appendMessages       (const QString & s);      void     appendMessages       (const QString & s);
120      void     appendMessagesColor  (const QString & s, const QString & c);      void     appendMessagesColor  (const QString & s, const QString & c);
# Line 119  public: Line 125  public:
125      // Context menu event handler.      // Context menu event handler.
126      void contextMenuEvent(QContextMenuEvent *pEvent);      void contextMenuEvent(QContextMenuEvent *pEvent);
127    
128      // Retrieve the available instrument name(s) of an instrument file (.gig).          // Common (invalid) name-helpers.
129      static QString     getInstrumentName (const QString& sInstrumentFile, int iInstrumentNr);      static QString noEngineName();
130      static QStringList getInstrumentList (const QString& sInstrumentFile);      static QString noInstrumentName();
131    
132      // Instrument name(s) retrieval mode.          // Check whether a given file is an instrument file.
133      static bool instrumentNames();          static bool isInstrumentFile (const QString& sInstrumentFile);
134      static void setInstrumentNames (bool bInstrumentNames);  
135        // Retrieve the available instrument name(s) of an instrument file (.gig).
136        static QString getInstrumentName (const QString& sInstrumentFile,
137                                                            int iInstrumentNr, bool bInstrumentNames);
138        static QStringList getInstrumentList (const QString& sInstrumentFile,
139                                                            bool bInstrumentNames);
140    
141  private:  private:
142    
# Line 137  private: Line 148  private:
148    
149      // Sampler channel info map.      // Sampler channel info map.
150      QString m_sEngineName;      QString m_sEngineName;
151        QString m_sInstrumentName;
152      QString m_sInstrumentFile;      QString m_sInstrumentFile;
153      int     m_iInstrumentNr;      int     m_iInstrumentNr;
154      int     m_iInstrumentStatus;      int     m_iInstrumentStatus;
# Line 147  private: Line 159  private:
159      QString m_sAudioDriver;         // DEPRECATED.      QString m_sAudioDriver;         // DEPRECATED.
160      int     m_iAudioDevice;      int     m_iAudioDevice;
161      float   m_fVolume;      float   m_fVolume;
   
     // Retrieve mode for available instrument name(s)  
         // from an instrument file (.gig).  
         static bool g_bInstrumentNames;  
162  };  };
163    
164  #endif  // __qsamplerChannel_h  #endif  // __qsamplerChannel_h

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

  ViewVC Help
Powered by ViewVC