Skip to content

feat: migrate to decibri 5.0.0 - #26

Merged
rossarmstrong merged 3 commits into
mainfrom
development
Jul 10, 2026
Merged

feat: migrate to decibri 5.0.0#26
rossarmstrong merged 3 commits into
mainfrom
development

Conversation

@rossarmstrong

Copy link
Copy Markdown
Member
  • Cargo.toml: decibri 3.0.0 -> 5.0.0; feature output -> playback; rust-version 1.82.0 -> 1.88; package version 0.1.0 -> 0.2.0; drop unused direct dependency crossbeam-channel
  • src/commands/capture.rs: rename to Microphone/MicrophoneConfig/ MicrophoneStream; build config via default() then assign; rework read loop onto next_chunk() so output honors --rate at any device native rate; distinguish device loss via take_last_error() (exit 4); replace the overflow watchdog with overrun_count() wired to JSON dropped_chunks under a complete-and-warn policy; simplify post-stop drain
  • src/commands/play.rs: rename to Speaker/SpeakerConfig/SpeakerStream; build config via default() then assign; surface output-device failure during playback as exit 4 via take_last_error()
  • src/device_resolve.rs: input_devices()/output_devices(); handle DeviceSelector::Id and a non_exhaustive catch-all
  • src/commands/devices.rs: MicrophoneInfo/SpeakerInfo; add id to devices --json
  • src/commands/capture.rs + src/commands/play.rs (arg structs): restrict --channels to 1 with an exit-2 mono-only arg error; add --device-id building DeviceSelector::Id
  • tests/devices_snapshot.rs: add id to the synthetic payload
  • tests: pin mono-only rejection, --device-id help/conflict/no-match paths; remove stale wording
  • re-accept version and devices-schema snapshots for the new surface
  • build.rs: punctuation cleanup in two panic messages
  • CHANGELOG.md: 0.2.0 entry

Ross Armstrong added 3 commits July 11, 2026 08:03
- Cargo.toml: decibri 3.0.0 -> 5.0.0; feature output -> playback;
  rust-version 1.82.0 -> 1.88; package version 0.1.0 -> 0.2.0;
  drop unused direct dependency crossbeam-channel
- src/commands/capture.rs: rename to Microphone/MicrophoneConfig/
  MicrophoneStream; build config via default() then assign; rework read
  loop onto next_chunk() so output honors --rate at any device native
  rate; distinguish device loss via take_last_error() (exit 4); replace
  the overflow watchdog with overrun_count() wired to JSON dropped_chunks
  under a complete-and-warn policy; simplify post-stop drain
- src/commands/play.rs: rename to Speaker/SpeakerConfig/SpeakerStream;
  build config via default() then assign; surface output-device failure
  during playback as exit 4 via take_last_error()
- src/device_resolve.rs: input_devices()/output_devices(); handle
  DeviceSelector::Id and a non_exhaustive catch-all
- src/commands/devices.rs: MicrophoneInfo/SpeakerInfo; add id to
  devices --json
- src/commands/capture.rs + src/commands/play.rs (arg structs): restrict
  --channels to 1 with an exit-2 mono-only arg error; add --device-id
  building DeviceSelector::Id
- tests/devices_snapshot.rs: add id to the synthetic payload
- tests: pin mono-only rejection, --device-id help/conflict/no-match
  paths; remove stale wording
- re-accept version and devices-schema snapshots for the new surface
- build.rs: punctuation cleanup in two panic messages
- CHANGELOG.md: 0.2.0 entry
- npm/decibri-cli/package.json: version 0.1.0 -> 0.2.0 so the
  wrapper version-parity test passes against the migrated crate
@rossarmstrong
rossarmstrong merged commit fd8f4b2 into main Jul 10, 2026
9 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 10, 2026
@rossarmstrong
rossarmstrong deleted the development branch July 10, 2026 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant