I’m developing my first VCV rack module vcvrack-mienophone which is meant to:
- capture pictures from a webcam
- trade the pictures for emotion parameters using Azure Face API
- map emotion parameters onto module outputs.
The current state of the module: It sends a local image to HTTP API using curl.c and maps the result set to 8 module outputs. Shameless green early development state.
The issue I face is that the API requests are synchronous, blocking the whole rack while curl is waiting for the HTTP response.
Could you please share your ideas how to implement this asynchonous? Is there an API in VCV rack core I could use? I am quite a C/C++ beginner.