harvest/graphify-out/cache/semantic/pd5fd89c46bb5/6c1b9ccbe4318843e907c23a29f07fa92f9330beb282005cf014201c42a49789.json
2026-10-05 18:31:49 -04:00

1 line
No EOL
8.5 KiB
JSON

{"nodes": [{"id": "game_scripts_coop_voice", "label": "CoopVoice", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L1", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Extends GD-Sync's VoiceChat but replaces its sending: GD-Sync sent raw 32-bit float samples every loud frame (~60 KB/s); CoopVoice resamples to 12 kHz, cuts 60 ms pieces (CHUNK 720) and sends 4-bit IMA ADPCM (~6 KB/s while talking). Each piece carries the codec state so a lost one costs only its own 60 ms."}, {"id": "game_scripts_coop_voice_make", "label": "make()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L49", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_speaking", "label": "speaking()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L66", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_mute_microphone", "label": "mute_microphone()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L70", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_process", "label": "_process()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L76", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_feed", "label": "feed()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L90", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_gate", "label": "_gate()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L109", "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Noise gate: a piece is loud when >= LOUD_PARTS of its four 15 ms parts exceed gate_rms, so a click spread over two pieces doesn't count; opens after GATE_OPEN loud pieces, also sends the held piece before them (the first word's start), stays open GATE_HOLD seconds."}, {"id": "game_scripts_coop_voice_encode_next", "label": "_encode_next()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L128", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_receive_voice", "label": "_receive_voice()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L142", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_configure_output", "label": "_configure_output()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L160", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_loud_parts", "label": "loud_parts()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L173", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_encode", "label": "encode()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L187", "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_scripts_coop_voice_decode", "label": "decode()", "file_type": "code", "source_file": "game/scripts/coop_voice.gd", "source_location": "L225", "source_url": null, "captured_at": null, "author": null, "contributor": null}], "edges": [{"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_make", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_speaking", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_mute_microphone", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_process", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_feed", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_gate", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_encode_next", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_receive_voice", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_configure_output", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_loud_parts", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_encode", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice", "target": "game_scripts_coop_voice_decode", "relation": "contains", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_process", "target": "game_scripts_coop_voice_feed", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_process", "target": "game_scripts_coop_voice_receive_voice", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_feed", "target": "game_scripts_coop_voice_gate", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_gate", "target": "game_scripts_coop_voice_loud_parts", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_gate", "target": "game_scripts_coop_voice_encode_next", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_encode_next", "target": "game_scripts_coop_voice_encode", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_receive_voice", "target": "game_scripts_coop_voice_decode", "relation": "calls", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}, {"source": "game_scripts_coop_voice_encode", "target": "game_scripts_coop_voice_decode", "relation": "shares_data_with", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/scripts/coop_voice.gd", "source_location": null, "weight": 1.0}], "hyperedges": []}