lasp/cpp_src/device/lasp_deviceinfo.cpp

34 lines
568 B
C++
Raw Normal View History

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
#if LASP_HAS_PORTAUDIO == 1
#include "lasp_portaudiodaq.h"
#endif
2022-07-20 12:58:48 +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
#if LASP_HAS_PORTAUDIO == 1
fillPortAudioDeviceInfo(devs);
#endif
2022-07-20 12:58:48 +00:00
return devs;
}