Archive 17/01/2023.

Passing data between Urho and another application on the PI

Aliceravier

Hi :slight_smile:

I would like to send a boolean value from a sound processing application to a running Urho3D application on the raspberry pi4, under Raspbian; and be able to send an integer from the Urho application to the sound processing application. All this should be in realtime.

The sound processing is being done externally to Urho but it consists of an FFT IRR filter and some more processing to extract a frequency/note from an audio snippet. And also sending a frequency/note out onto a sound card.

Does anyone has any idea how this can be done, on the Urho side?

Alice

Modanung

First thing that comes to mind is integrating Open Sound Control (OSC) into your program, since the sound processing application might support this. Although I do not have any personal experience with it, and may be somewhat overreaching.

Also, welcome to the forums! :confetti_ball: :slightly_smiling_face:

S.L.C

Maybe look for an IPC library? I doubt you’ll be unable to find one.

You failed to specify OS, language etc. So there’s limited answers that anyone can give without context.

Aliceravier

Thanks, I edited my question to address those issues

weitjong

Have you checked out “jack-audio”? It should be a good fit for your use case. Plus, the SDL supports it as one of the audio driver, so it means Urho3D supports it too. It should be just a simple matter of having the development package for Jack-audio installed before rebuilding the engine from source. Good luck.