34 |
// Special QListViewItem::rtti() unique return value. |
// Special QListViewItem::rtti() unique return value. |
35 |
#define QSAMPLER_DEVICE_ITEM 1001 |
#define QSAMPLER_DEVICE_ITEM 1001 |
36 |
|
|
37 |
|
// Early forward declaration. |
38 |
|
class qsamplerDevicePort; |
39 |
|
|
40 |
|
|
41 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
42 |
// qsamplerDeviceParam - MIDI/Audio Device parameter structure. |
// qsamplerDeviceParam - MIDI/Audio Device parameter structure. |
70 |
QString value; |
QString value; |
71 |
}; |
}; |
72 |
|
|
73 |
// A typedef'd parameter QMap. |
// Typedef'd parameter QMap. |
74 |
typedef QMap<QString, qsamplerDeviceParam> qsamplerDeviceParamMap; |
typedef QMap<QString, qsamplerDeviceParam> qsamplerDeviceParamMap; |
75 |
|
|
76 |
|
// Typedef'd device port/channels QptrList. |
77 |
|
typedef QPtrList<qsamplerDevicePort> qsamplerDevicePortList; |
78 |
|
|
79 |
|
|
80 |
//------------------------------------------------------------------------- |
//------------------------------------------------------------------------- |
81 |
// qsamplerDevice - MIDI/Audio Device structure. |
// qsamplerDevice - MIDI/Audio Device structure. |
109 |
const QString& driverName() const; |
const QString& driverName() const; |
110 |
const QString& deviceName() const; |
const QString& deviceName() const; |
111 |
|
|
112 |
|
// Set the proper device parameter value. |
113 |
|
void setParam (const QString& sParam, const QString& sValue); |
114 |
|
|
115 |
// Device parameters accessor. |
// Device parameters accessor. |
116 |
const qsamplerDeviceParamMap& params() const; |
const qsamplerDeviceParamMap& params() const; |
117 |
|
|
118 |
// Set the proper device parameter value. |
// Device port/channel list accessor. |
119 |
void setParam (const QString& sParam, const QString& sValue); |
qsamplerDevicePortList& ports(); |
120 |
|
|
121 |
|
// Device port/channel list refreshner. |
122 |
|
void refresh(lscp_client_t *pClient); |
123 |
|
|
124 |
// Device ids enumerator. |
// Device ids enumerator. |
125 |
static int *getDevices(lscp_client_t *pClient, |
static int *getDevices(lscp_client_t *pClient, |
126 |
qsamplerDeviceType deviceType); |
qsamplerDeviceType deviceType); |
140 |
|
|
141 |
// Device parameter list. |
// Device parameter list. |
142 |
qsamplerDeviceParamMap m_params; |
qsamplerDeviceParamMap m_params; |
143 |
|
|
144 |
|
// Device port/channel list. |
145 |
|
qsamplerDevicePortList m_ports; |
146 |
}; |
}; |
147 |
|
|
148 |
|
|