1 |
// qsamplerChannel.h |
// qsamplerChannel.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2003-2004, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2003-2005, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
101 |
bool setVolume(float fVolume); |
bool setVolume(float fVolume); |
102 |
|
|
103 |
// Channel info structure map executive. |
// Channel info structure map executive. |
104 |
bool updateChannelInfo(); |
bool updateChannelInfo(); |
105 |
|
|
106 |
// Reset channel method. |
// Reset channel method. |
107 |
bool resetChannel(); |
bool resetChannel(); |
108 |
|
|
109 |
|
// Channel setup dialog form. |
110 |
|
bool channelSetup(QWidget *pParent); |
111 |
|
|
112 |
// Message logging methods (brainlessly mapped to main form's). |
// Message logging methods (brainlessly mapped to main form's). |
113 |
void appendMessages (const QString & s); |
void appendMessages (const QString & s); |
114 |
void appendMessagesColor (const QString & s, const QString & c); |
void appendMessagesColor (const QString & s, const QString & c); |
115 |
void appendMessagesText (const QString & s); |
void appendMessagesText (const QString & s); |
116 |
void appendMessagesError (const QString & s); |
void appendMessagesError (const QString & s); |
117 |
void appendMessagesClient (const QString & s); |
void appendMessagesClient (const QString & s); |
118 |
|
|
119 |
|
// Context menu event handler. |
120 |
|
void contextMenuEvent(QContextMenuEvent *pEvent); |
121 |
|
|
122 |
|
// Retrieve the available instrument name(s) of an instrument file (.gig). |
123 |
|
static QString getInstrumentName (const QString& sInstrumentFile, int iInstrumentNr); |
124 |
|
static QStringList getInstrumentList (const QString& sInstrumentFile); |
125 |
|
|
126 |
|
// Instrument name(s) retrieval mode. |
127 |
|
static bool instrumentNames(); |
128 |
|
static void setInstrumentNames (bool bInstrumentNames); |
129 |
|
|
130 |
private: |
private: |
131 |
|
|
147 |
QString m_sAudioDriver; // DEPRECATED. |
QString m_sAudioDriver; // DEPRECATED. |
148 |
int m_iAudioDevice; |
int m_iAudioDevice; |
149 |
float m_fVolume; |
float m_fVolume; |
150 |
|
|
151 |
|
// Retrieve mode for available instrument name(s) |
152 |
|
// from an instrument file (.gig). |
153 |
|
static bool g_bInstrumentNames; |
154 |
}; |
}; |
155 |
|
|
156 |
#endif // __qsamplerChannel_h |
#endif // __qsamplerChannel_h |