Files
VoelinClient/crates/tsc-core/Cargo.toml
T
Claude af5b202347 tsc-core: audio settings, client and stream volumes, media pipeline
Audio: sessions start their audio thread with the engine's AudioSettings
(SetAudioSettings, engine-wide), SetClientVolume / SetClientMuted reach
the mixer, clients that leave are forgotten, and the audio thread reports
the microphone level (InputLevel, also from TestMicrophone without a
session). Audio of watched streams plays through the mixer under a
made-up client id with its own volume (SetStreamVolume).

Media (feature `media`, default): Streamer captures a screen and system
audio, encodes VP8 (the offered codec) at the setup's bitrate and Opus,
honours keyframe requests and feeds a StreamSink or, as EncodedSource, a
FrameSource. VideoPipeline / Viewer decode watched streams on their own
thread, skip to keyframes after losses and ask for them. A test streams
the test pattern through two stream tasks and loopback peers and checks
the rectangle in the decoded pictures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 10:14:40 +00:00

43 lines
1.4 KiB
TOML

[package]
name = "tsc-core"
version = "0.1.0"
description = "Client engine: server sessions merging voice, gateway and query sources; the API the UI drives."
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
publish.workspace = true
[features]
default = ["audio-device", "media"]
# Capture and play audio through the system's devices.
audio-device = ["tsc-audio/device"]
# Screen / system-audio capture and video codecs for streams (`media`
# module; tsc-media with its default backends: libvpx, OpenH264 loaded at
# runtime, X11 and PipeWire on Linux). Off for mobile builds.
media = ["dep:tsc-media"]
[dependencies]
anyhow = "1"
futures = "0.3"
serde_json = "1"
thiserror = "2"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }
tokio-tungstenite = "0.30"
tracing = "0.1"
tsc-audio = { path = "../tsc-audio", default-features = false }
tsc-gateway-proto = { path = "../tsc-gateway-proto" }
tsc-media = { path = "../tsc-media", features = ["str0m"], optional = true }
tsc-model = { path = "../tsc-model" }
tsc-observer = { path = "../tsc-observer" }
tsc-query = { path = "../tsc-query" }
tsc-stream = { path = "../tsc-stream" }
tsclientlib = { path = "../proto/tsclientlib" }
tsproto-packets = { path = "../proto/tsproto-packets" }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread", "test-util"] }
[lints]
workspace = true