2022-07-20 12:58:48 +00:00
|
|
|
#include "lasp_deviceinfo.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
#define MAX_DEV_COUNT_PER_API 20
|
|
|
|
|
|
|
|
#if LASP_HAS_ULDAQ == 1
|
|
|
|
#include "lasp_uldaq.h"
|
|
|
|
#endif
|
|
|
|
#if LASP_HAS_RTAUDIO == 1
|
|
|
|
#include "lasp_rtaudiodaq.h"
|
|
|
|
#endif
|
2023-06-14 19:23:53 +00:00
|
|
|
#if LASP_HAS_PORTAUDIO == 1
|
|
|
|
#include "lasp_portaudiodaq.h"
|
|
|
|
#endif
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
|
2023-01-20 14:50:51 +00:00
|
|
|
DeviceInfoList DeviceInfo::getDeviceInfo() {
|
|
|
|
DeviceInfoList devs;
|
2022-07-20 12:58:48 +00:00
|
|
|
#if LASP_HAS_ULDAQ ==1
|
|
|
|
fillUlDaqDeviceInfo(devs);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if LASP_HAS_RTAUDIO == 1
|
|
|
|
fillRtAudioDeviceInfo(devs);
|
|
|
|
#endif
|
2023-06-14 19:23:53 +00:00
|
|
|
#if LASP_HAS_PORTAUDIO == 1
|
|
|
|
fillPortAudioDeviceInfo(devs);
|
|
|
|
#endif
|
2022-07-20 12:58:48 +00:00
|
|
|
|
|
|
|
return devs;
|
|
|
|
}
|
|
|
|
|