Critical JNI / Live Mode (-odac) Bug: f1 ftable fails to load WAV file on macOS Csound 6.18 (Need API Fix for soundin.0 issue)

Hello Csound community,

I am encountering the exact same issue as seen in the topic “Apparent bug on GEN01 ftable” (by user Jstoro), but within a non-CLI context.

When running Csound in Real-Time Output Mode (-odac) via the Java API (JNI) on macOS (Arm/M1), the system tries to load my input WAV file via f1 (GEN01), but instead attempts to allocate the audio input file soundin.0.

:stop_sign: The Critical Error

The output error is identical to the linked issue:

SECTION 1: ftable 1: deferred alloc for soundin.0 soundin cannot open soundin.0: No Error.ftable 1: Failed to open file soundin.0 f 1 0.00 0.00 1.00 nan ... Invalid ftable no. 1.000000

:hammer_and_wrench: Context & Debugging

Minimal Configuration

Setting Value
I/O Flags csound.SetOption("-odac");
Sample Rate csound.SetOption("-r44100");
Buffering csound.SetOption("-b1024"); csound.SetOption("-B4096");
Score Line f1 0 0 1 "/var/folders/.../tempfile.wav" 0 0 0

:question: Question

What is the definitive and reliable combination of Csound flags that must be set via the Java API to correctly load the file into f1 (GEN01) and completely suppress the internal Csound logic that defaults to attempting soundin.0 allocation during DAC-only execution on macOS?

Thank you for your advice and insights!