Skip to content

Standalone: ASIO fixes (RtAudio past 6.0.1, one driver for both sides, no hang on stop) - #652

Merged
defiantnerd merged 4 commits into
free-audio:nextfrom
defiantnerd:asio-one-driver
Nov 26, 2026
Merged

defiantnerd merged 4 commits into
free-audio:nextfrom
defiantnerd:asio-one-driver

Conversation

@defiantnerd

Copy link
Copy Markdown
Collaborator

Windows standalone, ASIO only; no plugin format changes.

  • RtAudio moves from the 6.0.1 tag to 521fcab, which has the fix from ASIO: provide bufferSwitchTimeInfo instead of leaving it NULL thestk/rtaudio#486: a driver passing a NULL bufferSwitchTimeInfo (Steinberg's Generic Low Latency ASIO driver) ended the standalone on ASIOStart().
  • Under ASIO one driver is both input and output. The settings window now shows a single "Driver" menu, and the input is that driver's wherever it has one; before, another driver could be picked as input and failed on OK.
  • Stopping an ASIO stream no longer waits for a driver that has stopped calling back. RtAudio's stopStream() waits for the next callback without a timeout, which hung the settings window on the next device change; closeStream() stops the running stream without that wait.
  • The latency note moves under the buffer size, on a line of its own.

Tested on Windows x64 with the MOTU Pro Audio and ASIO4ALL drivers.

guarantee_rtaudio fetched the 6.0.1 tag, the last release. Its ASIO host
left bufferSwitchTimeInfo NULL, and Steinberg's Generic Low Latency ASIO
driver calls it regardless of kAsioSupportsTimeInfo, so opening that driver
in the standalone called address 0 on ASIOStart() and ended the process.
thestk/rtaudio#486 supplies the callback; this pins the merge of it
(521fcab) until a release carries it.
An ASIO driver serves both directions, and RtAudio opens input and output on
one driver. The Windows settings window still listed every driver under
Input, and choosing one other than the output's failed when the stream was
opened.

The backend now says whether its api shares one device between the
directions (sharesOneDevice(), true for RtAudio's ASIO). While it does, the
Input menu offers No Input and the output's driver only, and follows the
Output menu: choosing another output moves the input to that driver, and
keeps it on if it was on.
… has stopped calling back

RtAudio's ASIO stopStream() waits without a timeout for the next callback to drain the output. A driver that never calls back hung the settings window on the next device change; closeStream() stops a running ASIO stream without that wait.
…ne of its own

Under ASIO the driver is both sides, so the settings show one Driver menu and its input is the driver's wherever it has one. The latency note moves under the buffer size, where it has the full width.
@defiantnerd
defiantnerd merged commit 558cee4 into free-audio:next Nov 26, 2026
28 checks passed
@defiantnerd
defiantnerd deleted the asio-one-driver branch November 26, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant