--- qsampler/trunk/src/qsamplerDevice.cpp 2007/12/06 14:23:39 1559 +++ qsampler/trunk/src/qsamplerDevice.cpp 2008/02/16 19:41:05 1698 @@ -2,7 +2,7 @@ // /**************************************************************************** Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. - Copyright (C) 2007, Christian Schoenebeck + Copyright (C) 2007, 2008 Christian Schoenebeck This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -702,6 +702,17 @@ return piDeviceIDs; } +std::set Device::getDeviceIDs(lscp_client_t *pClient, + DeviceType deviceType) +{ + std::set result; + int* piDeviceIDs = getDevices(pClient, deviceType); + if (!piDeviceIDs) return result; + for (int i = 0; piDeviceIDs[i] != -1; ++i) + result.insert(piDeviceIDs[i]); + return result; +} + // Driver names enumerator. QStringList Device::getDrivers ( lscp_client_t *pClient,