Back to the main page.
Bug 3281 - implement ft2audio
Status | CLOSED FIXED |
Reported | 2017-04-12 20:59:00 +0200 |
Modified | 2019-08-10 12:37:15 +0200 |
Product: | FieldTrip |
Component: | realtime |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2017-04-12 20:59:27 +0200
we need a solution to read data from a FT buffer and play it back on the audio card. I initially started with a eegsynth-style python implementation, but now think that a c implementation would be better. This allows a single *.exe to be copied on another computer, rather than having to deal with the whole python stack.
Robert Oostenveld - 2017-04-12 21:12:03 +0200
I created a branch for this. It contains a first implementation that works, but it is still a bit irregular (i.e. sensitive to dropped audio) and unstable. mac011> git commit [bug3281-ft2audio e633ad5] ENH - first implementation of ft2audio. Added simple interface code to read from FT buffer. Various other (small) improvements. See http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3281 10 files changed, 1464 insertions(+), 1082 deletions(-) create mode 100644 realtime/src/acquisition/audio/ft2audio.c rewrite realtime/src/buffer/src/dmarequest.c (89%) rewrite realtime/src/buffer/src/interface.c (81%) mac011> git push --set-upstream origin bug3281-ft2audio Counting objects: 29, done. Delta compression using up to 4 threads. Compressing objects: 100% (29/29), done. Writing objects: 100% (29/29), 9.71 KiB | 0 bytes/s, done. Total 29 (delta 24), reused 0 (delta 0) remote: Resolving deltas: 100% (24/24), completed with 21 local objects. To github.com:robertoostenveld/fieldtrip.git * [new branch] bug3281-ft2audio -> bug3281-ft2audio Branch bug3281-ft2audio set up to track remote branch bug3281-ft2audio from origin.
Robert Oostenveld - 2017-05-15 11:57:30 +0200
I have made the implementation and merged it into the master branch. See https://github.com/fieldtrip/fieldtrip/pull/436 Any further work should be considered maintenance. Note that it still needs to be compiled and tested on linux and especially windows. For that I need access to Daniela's laptop.
Robert Oostenveld - 2018-11-08 13:58:43 +0100
this has been used in the Cogito performance and it worked fine.