Skip to content

Expose hooks for external audio drivers - #21

Open
kshoji wants to merge 3 commits into
ccrma:mainfrom
kshoji:feature/fix-for-external-audio-processing
Open

Expose hooks for external audio drivers#21
kshoji wants to merge 3 commits into
ccrma:mainfrom
kshoji:feature/fix-for-external-audio-processing

Conversation

@kshoji

@kshoji kshoji commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix double audio callback 53efa8f

  • Add useBuiltInAudioFilter on ChuckMainInstance / ChuckSubInstance so callers can disable OnAudioFilterRead when another path advances the shared VM (avoids double ManualAudioCallback / double UGen reads).
    • The default behavior around OnAudioFilterRead is unchanged.

Add Read-only accessors for some private fields

  • Expose Main mic state via GetMicClip() / GetMicDevice(). fb48ab5
  • Expose Sub replacement-DAC name and running status via OutputUgen / IsRunning. bc488bf

Motivation

Integrations such as Unity 6 Scriptable Audio Generators need to drive ChucK from outside OnAudioFilterRead. Currently, the required state is private, so consumers must use reflection.

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