Commit Graph

17 Commits

Author SHA1 Message Date
Anne de Jong 43cf2427ea Workaround for bug in RtAudio when first channel not equal to 0
continuous-integration/drone/push Build is passing Details
2023-05-25 16:52:55 +02:00
Anne de Jong f3e4bc70ea DeviceInfo is now base class for derived variants for UlDaqDeviceInfo and RtAudioDeviceInfo. Dynamic casts are used in contstructors when stream is created. For UlDaq, device inventory list is not scanned anymore when starting device. This should speed up starting the device as well. Added a flag duplexModeForced to DeviceInfo. This one is true for DT9837A, as this device can only use input and output at the same time when running in duplex mode. Fixed the bug of printing an Uldaq error called noerror.
continuous-integration/drone/push Build is passing Details
2023-01-20 15:50:51 +01:00
Anne de Jong 24b9a24b04 Bugfix and code formatting. 2023-01-04 15:15:03 +01:00
Anne de Jong 8befe4afc8 Splitted UlDAQ code in header and cpp file to make a more logical separation between declaration and implementation. BUGFIX: lasp_record did not return True in self.finish(), resulting in a stream stop. 2023-01-04 14:21:39 +01:00
Anne de Jong f4c4a883c6 Small comment change 2022-11-11 13:51:10 +01:00
Anne de Jong 0c0a86dc64 Update RtAudio backend to overwrite default samplerate to 48 kHz, if available 2022-11-11 12:35:52 +01:00
Anne de Jong 58ed65487b Removed Boost, removed DEBUGTRACE 2022-10-11 09:55:08 +02:00
Anne de Jong ce402acd15 Fixed bug of left mutex in RtAudio backend 2022-10-10 19:29:51 +02:00
Anne de Jong fae906884e Textual improvements. Formatting (Neoformat) improvements. Let DataTypeDescriptor be a reference (to a global const std map in Daq class. Improved naming of certain functions. Better DaqData implementation, now we make sure memory alignment is good at all times. Switched functions arguments in DaqData constructor to comply with all other cases of first frame, then channel. Better naming of stream in RtAudio. Better handling of faulty function calling in RtAudio start(). Bugfix in RtAudio, did call right Daq::dtypeDescr() function --> result was that only first channel was copied to all channels. Added extra check in StreamMgr. Removed unnecessary TypedDaqData class. Use a safe queue in threaded in data handler. We can now remove the Boost code for that. 2022-10-10 19:17:38 +02:00
Anne de Jong 4b82977709 Set some DEBUGTRACES back to disabled by default 2022-10-05 19:23:00 +02:00
Anne de Jong 31ead60469 Added RtAudio and UlDAQ as subprojects that are compiled in. Fixed proper connection of UlDAQ. Set default sensitity to 1.0 for a new DaqChannel. Segfault bug fixed in DaqData::copyToRaw. Scan in background for devices when StreamMgr() is initialized. Fixed bug in storing of DaqConfigs to lasp_shelve. Set RtAudio to 5.2.0. 2022-10-05 11:27:46 +02:00
Anne de Jong 59085b091f Some bugfixes and useful function additions 2022-09-28 09:41:02 +02:00
Anne de Jong 288e7c8dc5 Input stream and output stream both running. Added lockfree boost dependency to git modules, removed carma build as it is not required and every time again downloads Armadillo. Added functions to enable / disable all channels at once. Fixed a bug with RtAudio input streams. Fixed a bug in StreamMgr leading to segfaults (how to: use std::move ;)). 2022-09-27 17:20:45 +02:00
Anne de Jong 5ce5fba50b Sweep bug fixed. There is still something weird with RtAudio: only one channel is outputting signal. 2022-09-22 21:02:41 +02:00
Anne de Jong c75f0dddc5 Split up indatahandler with python callback in part and part that calls the Python function. Threading is now handled using a thread pool. Some bugfixes 2022-08-14 21:00:22 +02:00
Anne de Jong da99618fc3 Some comment improvement and cleanup 2022-07-25 22:29:42 +02:00
Anne de Jong 6a006e27f9 Output of a sine wave now works. Pfff 2022-07-20 14:58:48 +02:00