Need help organizing multithreaded audio code - involving sync <-> async

⚓ rust    📅 2025-04-25    👤 surdeus    👁️ 2      

surdeus

Hi,

while working on my room impulse response measurement software raumklang I came up with this code for recording new measurements:

Unfortunately, with all the things like async, jacks real-time audio thread and the non-realtime notification thread together, I find it really hard to organize my code. I would really appreciate any help on this.

The basic workflow is:

  1. connect to jack audio server
  2. user chooses input and output ports
  3. calibrate volume with pink-noise
  4. playback sine-sweep and record the measurement

Let me know if you need further information.

1 post - 1 participant

Read full topic

🏷️ rust_feed