Repository navigation
Conversation
Every source state carries the spec's `signal` (Sendspin/spec#335): with --signal-threshold <dBFS> it is present or absent from the input's RMS level, so a server can start and stop the input on its own; without it the input reports absent, so a server never starts it unasked. Present after 500 ms above the level, absent after 5 s below it. The capture device stays open while idle so the level can be read; audio reaches the role only while the server streams it. status shows the state on the input line. Builds against a sendspin-cpp fork commit that always reports the signal until that is released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Options::given_ was a uint32_t and --signal-threshold is the 33rd option, so its bit wrapped onto -o's: a config file that set output made signal-threshold look given and skipped it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin the fork commit of Sendspin/sendspin-cpp#287, which only drops the client's source@v1_support and always reports the source signal (Sendspin/spec#335), instead of a commit that also carries SourceRole::set_metadata(), which this branch does not use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Sendspin/spec#335 requires every source to report
signalin itsclient/statesource object and removes the client'ssource@v1_supportobject fromclient/hello. This lets the input tell the server when it carries a signal, so a server can start and stop it on its own, for example a turntable when the needle drops.--signal-threshold <dBFS>(-90to-1) setssignalfrom the input's RMS level: present after 500 ms above the level, absent after 5 s below it. Without the option the input reports absent, so a server only plays it when asked to.sendspin-cli statusshows the state on theinput:line.Options::given_is widened to 64 bits:--signal-thresholdis the 33rd option, so its bit wrapped onto-o's, and a config file that setoutputmadesignal-thresholdlook given.Depends on Sendspin/sendspin-cpp#287
The library still sends
source@v1_supportand only reportssignalwithSourceRoleConfig::line_sense. Until Sendspin/sendspin-cpp#287 is in a release, this branch builds against that PR's commit on a fork (SENDSPIN_GIT_REPOSITORY/SENDSPIN_GIT_TAGinCMakeLists.txt). That pin should move back to a sendspin-cpp release before this is merged.Tests
signal_detector_test.cppcovers the attack and release timing and the threshold; the option, config file, status and audio source tests cover the rest. 712 of 714 tests pass locally. The two failures,ARelativeControlSocketIsMadeAbsoluteUnderZandAConfiguredControlSocketIsAbsolutizedUnderDaemonize, came from my long build path: the control socket path in the build directory exceeded the 107-byte Unix socket limit.🤖 Generated with Claude Code