1 |
// qsamplerDevice.cpp |
// qsamplerDevice.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2010, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, 2008 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
702 |
return piDeviceIDs; |
return piDeviceIDs; |
703 |
} |
} |
704 |
|
|
705 |
|
std::set<int> Device::getDeviceIDs(lscp_client_t *pClient, |
706 |
|
DeviceType deviceType) |
707 |
|
{ |
708 |
|
std::set<int> result; |
709 |
|
int* piDeviceIDs = getDevices(pClient, deviceType); |
710 |
|
if (!piDeviceIDs) return result; |
711 |
|
for (int i = 0; piDeviceIDs[i] != -1; ++i) |
712 |
|
result.insert(piDeviceIDs[i]); |
713 |
|
return result; |
714 |
|
} |
715 |
|
|
716 |
|
|
717 |
// Driver names enumerator. |
// Driver names enumerator. |
718 |
QStringList Device::getDrivers ( lscp_client_t *pClient, |
QStringList Device::getDrivers ( lscp_client_t *pClient, |
1194 |
); |
); |
1195 |
pSpinBox->setMaximum( |
pSpinBox->setMaximum( |
1196 |
(!r.param.range_max.isEmpty()) ? |
(!r.param.range_max.isEmpty()) ? |
1197 |
r.param.range_max.toInt() : (1 << 16) // or better a nigher default max value ? |
r.param.range_max.toInt() : (1 << 24) // or better a higher default max value ? |
1198 |
); |
); |
1199 |
pSpinBox->setValue(val.toInt()); |
pSpinBox->setValue(val.toInt()); |
1200 |
return pSpinBox; |
return pSpinBox; |