Repository navigation
conference: an Audio window, each voice's jitter buffer as a graph, and its tuning - #1421
Merged
Merged
Conversation
…og axis
repeat: substituted {i} through a widget's binds, handlers, settings roots and
rich-text runs, but not a chart's series: list, cursor or log_y, so a chart per
row read the literal "rows.{i}.y" and drew nothing. Now they take the index too.
…nd its tuning
cvc://components/audio_buffers.ari is a window with a row per person in the
room (room_users' rows): a chart of what that voice's jitter buffer holds and
its target over the last 30 s, and a line with how often it ran dry (and how
often that was late audio) and what was trimmed; then the speaker's block and
what it holds past the buffers, and the buffers' tuning: a settings: editor over
audio.jb (mode adaptive or fixed; the least, starting and greatest targets and
how long a voice plays clean before its target shrinks; or one fixed target),
and a button that puts every target back to its start. The tuning is local,
like the Users window's volume: never sent.
The host side is cvc::ariadne::conference::voice_monitor: ConferenceSession
makes it at setup (it describes the tuning keys for the editor) and steps it
from mix_audio. Every 0.2 s it samples each voice's stats into a 150-sample
history and publishes media.<pid>.jb.{buffered,target,now}; it applies a change
to the tuning with the new voice_mixer::set_params (the device's floor still
holds) and a reset with voice_mixer::reset_targets.
conference_roster.ari has the window (closed at first, in the View menu).
…nce-audio-buffers # Conflicts: # src/cvc/CMakeLists.txt
transfix
enabled auto-merge (squash)
November 21, 2026 20:01
transfix
added a commit
that referenced
this pull request
Nov 21, 2026
conference.ari imports audio_buffers.ari (#1421) beside room_users and chat, and conference-join seeds tree.audio.open to 0, so the Audio window waits for the View menu. The baseline keeps its Audio include and View > Audio item; the test checks the window and the seed.
transfix
added a commit
that referenced
this pull request
Nov 22, 2026
…e.ari) (#1422) * The simulation clock at 120 Hz: 1/120 s quanta, the navigator's tick 7 quanta ARIADNE_WORLDS.md section 18.1 (owner, 2026-11-19: "7 quanta"). Every host runs the holon's 1/120 s quantum, physics a step a quantum, and the navigator's tick is 7 quanta (0.0583 s), the nearest whole tick to the 0.06 s the shipped policies were trained at. - sim_tick.h: kSimQuantum 1/120 s, kSimTickQuanta 7, kSimTick from them; adopt_sim_clock puts a fresh clock on the catch-up even at the quantum. - pycvc: SIM_TICK_QUANTA; cars.py's fallbacks; the gym, swarm and sim_thread defaults follow kSimTick. - NavPlantConvergence.PoliciesHoldTheirReachAtTheSimulationTick (CVC_NAV_TICK_AB=1): the shipped and default policies on Jolt RoboRacers at 0.06 s, the simulation tick and 0.05 s over 24 s. * Hosts on the simulation clock build their plant world at its quantum The plant host's own default stays 0.01 s, where navigators at the trainers' 0.06 s run; the cars template and the scene swarm, which tick cvc::kSimTick, give their plant_host a 1/120 s world. The nav lab's retarget lands on the first tick at or past 3 s. * clang-format the changed lines * reach_on_plant: a physics step that divides the navigator's tick 0.01 s for a tick of whole 0.01 s steps (every score so far), the simulation quantum for one of whole quanta (cvc::kSimTick), else the step nearest 0.01 s that divides it. * One world: a server holon runs the document's SceneWorld (OW2) ARIADNE_WORLDS.md section 18.2. holon::attach_world(SceneWorld *) moves the avatars into a server document's physics world, beside its bodies and vehicles, and steps that world on the holon's clock: SceneWorld::follow gains per-step hooks, the avatars driven just before each step and read after it. A car shoves an avatar; the avatar takes some of its momentum. - avatar_world over a shared world it does not own: its owner steps it and owns its gravity, air and statics; release() and move_to() (a world its owner replaced). - AppRuntime::set_world_external: the runtime stops stepping a world a holon runs. - arisrv attaches the server document's world to the room's holon. - AriadneOneWorld tests: a Humvee driven into a standing avatar carries it down the road and ends behind the same run without it; attach refuses a client, a holon without physics and a world on another step; avatars stand on the scene's own bodies; detach puts them back. * docs: OW1 built; the shipped policies hold their reach at the 7-quanta tick * OW2: format the changed lines; ARIADNE_WORLDS section 18 records it built * One world: the navigators steer around the avatars (OW4) ARIADNE_WORLDS.md section 18.4. WorldVehicles::set_movers: other things in the world the navigators steer around while avoid is on, as foreign agents to each fleet's separation. A holon running the world sets them to its avatars before each step, and clears them when it leaves. A car on nav@1 swings 3.1 m past a person standing in its lane and drives on; without avoiding it carries them 34 m (AriadneOneWorld). * One world: the entity table and drivers, server side (OW3) ARIADNE_WORLDS.md section 18.4. holon::entities() lists every mover in the holon's world: each participant's person and the attached world's entities, with kind, controller, driver, owner and policy. holon::set_driver(pid, entity) puts a participant in a world vehicle: its person leaves the world (feet and reserve kept), its intent's new drive axes (avatar_intent::steer, accel; intent.steer/accel on the wire) replace the vehicle's command each frame, and its state and display pose are the vehicle's. Getting out puts the person at a clear point beside the vehicle and gives the vehicle back to its controller. WorldVehicles::set_driver / driver; the room's entities carry driver. * OW3: clang-format the changed lines * AFleetIsLaidOutInTeamsAtRallyPoints: drive 2.4 s of world time, not 240 steps master's #1384 (fleets) wrote it at the 0.01 s step; with #1378's 1/120 s quanta 240 steps are 2.0 s, and the fleet, from rest at about 1.75 m/s^2, makes 4.35 m of the 5 m it asks for. 2.4 s (288 steps) makes 6.1 m. * OW6a: drive axes as shares, brake and reverse apart, the jump, getting in by asking avatar_intent's drive axes are now shares of the vehicle's envelope: steer of its lock, throttle [-1, 1] (negative is reverse), brake [0, 1]; the server scales them by the driven vehicle's max_steer/max_accel/max_decel (holon::drive_command). The brake stops the vehicle and never backs it up; reverse brakes a car still rolling forward, then backs it up; a boat has no brake and reverses on its propeller astern. On the wire: intent.throttle, intent.brake, intent.jump (intent.accel is gone). The walker jumps (avatar_intent::jump) at its controller's jump_speed (4 m/s by default) when something is under its feet, paying the jump from its reserve. Getting in is asked for in the room: participants.<pid>.drive = "<seq>:<entity>", answered by server_pump in drive_status and driving (relay-owned). holon::get_in holds it to the world's rules: the archetype's drivable: and reach: (3 m from its chassis box). room-drive / room-driving verbs; room entities carry drivable, reach, controls. controls.h: control schemes walk, car and boat with their own bindings (Space jumps a walker, brakes a car; E held 0.4 s gets in and out), and a resolver with steering ramps and hold-to-fire. * OW6a: clang-format the changed lines * OW6a: arigl drives by scheme; the get-in prompt, riders hidden, chase camera; docs arigl's room controls come from the scheme of what we control: walking (avatar.keys, plus Space to jump, V for mouse look, E held to get in), or the car's or boat's scheme while the relay says we drive (controls.<scheme>.<action>; all of them in the Controls window). The nearest drivable vehicle in reach (drive_target, the one ahead first) gets a prompt over it, "E Drive <name>", whose ring fills as E is held; a refusal is shown for a moment. Driving, client_pump plays our own pose out from the relay's samples instead of predicting it, room_view hides every driver's marker (set_riders), and the camera swings behind the moving vehicle. traffic.ari's trucks are drivable. ARIADNE_WORLDS 18.6 describes the schemes, the shares, the jump and the ask; OW6 is started. * OW6a: clang-format the changed lines (client side) * OW6b: gamepads drive every scheme (sticks, triggers, buttons) A control binding's pad inputs are read now: buttons by position (A, B, X, Y, LB, RB, ...), the triggers LT and RT, and stick halves (LeftY-, LeftX+). Each has a deadzone; an action is its keys' value or its gamepad's, the larger, and only a key's steering ramps. Defaults: walk on the left stick (as fast as pushed), look around on the right, jump A, get in and out on X held; driving, the left stick steers, RT is the throttle and LT the brake, LB a car's reverse (a boat's is LT). cvcGL's SdlGamepad reads the first gamepad SDL finds. arigl feeds it to the resolver, faces where the camera looks while the gamepad is in use, turns the camera with the right stick, and names the pad's button in the get-in prompt. room_view gains intent_from_axes for the analog walk. * OW6b: clang-format the changed lines; the prompt's key as plain ifs * OW6b: gamepad bindings in the Controls window, beside the keys A KeyBinding can name its gamepad inputs and where they live (pad, pad_path). The Controls window shows them in a column of their own with a Change button: the next gamepad input pressed becomes the new binding. Keys are ignored while it waits, and Escape keeps the old one. Runtime::post_pad_press takes the newly pressed gamepad inputs. SdlGamepad::pressed() lists them each frame (a button gone down, a trigger or stick half past half way). arigl's input pump now owns the gamepad: it posts the presses to the runtime and hands the gamepad to the room's controls, except while the window waits for a button. Each avatar and vehicle action lists its gamepad default, seeded at <viewer>.pad.<scheme>.<action>. * OW6b: clang-format the changed lines (Controls window) * OW6c: an avatar archetype may be a vehicle, picked beside the look world: avatars: archetypes: entries may name one of the world's vehicle archetypes (vehicle: rover). This is §5k phase 3 for vehicles. - Choice: a participant picks an archetype under the existing avatar choice subtree (participants.<pid>.avatar.archetype, beside color and accessory); until it picks, it has the first. - Server: server_pump rules on the choice (holon::set_archetype) and answers in the relay-owned archetype_status. For a vehicle it spawns it where the person stands and seats the participant for good: no getting out or into another, and the vehicle goes when the participant leaves or picks a person again. - Rules: world_rules::avatar() is now the first person archetype; find_avatar is new. - Room: the archetypes section carries vehicle, and room entities carry avatar (whose body it is). drive_target skips such vehicles, and arigl shows its owner no get-out prompt. - Verbs: room-archetypes, room-set-archetype, room-archetype. The baseline conference document gains a Body combo beside Colour and Wear. - traffic.ari offers a rover body. * OW6c: clang-format the changed lines * OW6c: the body verbs' test (room-archetypes, room-set-archetype, room-archetype) * OW6c: mouse look is first person, by default Walking under mouse look, arigl puts the camera at the walker's eyes (0.92 of its body's height, 5 cm behind them) and hides its own avatar, so W walks where you look. The orbit distance comes back when mouse look ends. The Controls window gains "Mouse look in first person" (MouseControls::first_person, arigl's camera settings.first_person, seeded on). Turning it off gives back the over-the-shoulder view. Driving keeps the chase camera. * The conference app as a component library (cvc://components/conference.ari) The baseline conference app's windows and tick move into a shipped library, so cyprty and other apps import them instead of carrying a copy (cyprty's roadmap §2). - Units: conference (My Camera), conference_avatar (Colour, Wear, Body, energy) and conference_peers (a camera window per participant, arg rows). - Functions: conference-step runs the whole app. Its pieces can be called on their own (conference-join, conference-media-open, conference-name-step, conference-devices-step, conference-avatar-step), so an app can take some of the conference. - The library imports room_users.ari and chat.ari itself. - conference_roster.ari is now those units placed with its menus, and on_tick is (conference-step): 530 lines down to 114. - Fix: the join now also resets the Body picker's keys. Before, they stayed unset (nil), so the picker never filled. - INDEX.ari and ARIADNE.md's component table list the three units. Tests: the baseline document is the library's windows and functions; the library's steps join, fill the pickers, send a pick and show a refusal; ShippedComponentsLoadClean covers the new file. * conference library: clang-format the changed lines * conference.ari: the Audio window is the library's too conference.ari imports audio_buffers.ari (#1421) beside room_users and chat, and conference-join seeds tree.audio.open to 0, so the Audio window waits for the View menu. The baseline keeps its Audio include and View > Audio item; the test checks the window and the seed. * ci: pin numpy-cp312's last JS-exceptions wasm bundle until JX2 cy-pca/cvcpkg#633 published numpy-cp312 2.4.6+cvc.7, its wasm and wasm-mt extensions rebuilt with -fwasm-exceptions. libcvc still links with Emscripten's JS exceptions until JX2 (#1409), so ariglx-web's link failed on "undefined symbol: __cpp_exception" in _multiarray_umath. The pre-JX1 pin puts back cvc.6, as it does for boost, libpng and the rest; JX2 deletes it.
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.
What this adds
An Audio window for the conference (
cvc://components/audio_buffers.ari) shows how full each person's jitter buffer is, and lets the user tune the buffers. The tuning is local, like the Users window's volume: it changes only what this client hears and is never sent.A row per person in the room, taken from
room_users' rows:The speaker's block size, and how much the output holds beyond the buffers (the AudioWorklet ring, in a browser).
Tuning: a
settings:editor overaudio.jb:mode: adaptive or fixed;min,start,max(the least, starting and greatest targets) andrelax(how long a voice plays clean before its target shrinks a step);delay, one target for every voice;I kept the mixer's other parameters internal (the late window, the quiet level, the step): they are easy to set wrong and mean little to a user.
conference_roster.arihas the window. It starts closed and opens from the View menu.How
cvc::ariadne::conference::voice_monitor(new).ConferenceSessioncreates it at setup; it then describes the tuning keys with the metadata the settings editor reads (unit, recommended range, default, help, choices). The host steps it frommix_audio. Every 0.2 s it samples each voice'svoice_mixer::statsinto a 150-sample history and publishesmedia.<pid>.jb.{buffered,target,now}plusaudio.{device_ms,ahead_ms,window_s}. A change to the tuning is applied withvoice_mixer::set_params, and the reset withvoice_mixer::reset_targets.voice_mixer::set_params(new) replaces the tunables, but the device's floor fromset_delay_floorstill holds. Known voices keep their targets, clamped into the new range.voice_mixer::reset_targets(new) puts every voice's target back to the start; a voice holding much more is trimmed down at its next pull.repeat:. It substituted{i}through a widget's binds, handlers, settings roots and runs, but not through a chart'sseries:list,cursororlog_y. So a repeated chart readrows.{i}.yliterally and drew nothing. This is a separate commit with its own test.Tested
voice_monitor_test: it describes the keys for an editor, publishes each voice's history, applies the tuning (with the floor holding and fixed mode), resets, and forgets a voice that left.voice_mixer_test:SetParamsKeepsTheFloorandResetTargetsDropsTheDelay.ariadne_chart_test:ARepeatedChartTakesItsIndex.ariadne_runtime_test:AudioBuffersDrawsARowPerPersonrenders the component against a mock backend, with two people's rows and their charts' numbers.ariadne_loader_test(ShippedComponentsLoadClean, so the component loads with no warnings and INDEX.ari lists it),ariadne_runtime_test,ariadne_chart_test,voice_mixer_testandvoice_monitor_testall pass natively on this branch.arigl runclients ofconference_roster.ari(window opened), each on its own Xvfb with llvmpipe, mic from SDL's disk driver. One client's frames stall 150 ms about every 700 ms. Screenshots show the other client's Audio window:cy-pca/cyprty's own document. That document needs the window added separately, after an arigl-web release.