feat: add Audio Gain block with live property updates#464
Merged
Conversation
Add a simple serial audio processing block for inline gain, mute, and polarity inversion. Uses GStreamer volume element for gain/mute and audioamplify for polarity inversion (amplification=-1.0). All properties are stored in user-friendly units (dB for gain, bool for invert) and converted to GStreamer's internal format (linear, amplification) both at build time and during runtime property updates. This is the first block with live-updating properties in the right-side properties panel. Properties show a green LIVE badge with hover tooltip explaining the real-time behavior. The reset button also triggers live updates to ensure the pipeline stays in sync. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a `live: bool` field to ExposedProperty in strom-types so any block can mark individual properties as real-time updatable. The frontend now checks `exposed_prop.live` instead of hardcoding block IDs to determine which properties show LIVE badges and send direct pipeline updates. Also replaces audioinvert with audioamplify (amplification=-1.0) for polarity inversion, and fixes the reset button to trigger live updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… type mismatch Fix inconsistent indentation of `live: false` across block definitions, change audiogain amplification type from f32 to f64 for consistency with PropertyValue::Float, add 80ms debounce on live property API calls to prevent flooding during slider drags, and fix misplaced doc comments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c9081e4 to
3992018
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
builtin.audiogainblock with volume (dB), mute, and polarity inversion — all controllable at runtime via avolume→audioamplifyGStreamer chainliveflag onExposedPropertythat marks properties as real-time updatable without flow restart, shown with a LIVE badge in the UITest plan
🤖 Generated with Claude Code