[gd_scene load_steps=7 format=3 uid="uid://dvy8ub5r3mnjc"] [ext_resource type="Script" path="res://ui/main_scene/scripts/microphone.gd" id="2_h65el"] [sub_resource type="SystemFont" id="SystemFont_dukv4"] font_names = PackedStringArray("JetBrains Mono NL") font_weight = 425 [sub_resource type="LabelSettings" id="LabelSettings_jutwa"] font = SubResource("SystemFont_dukv4") [sub_resource type="LabelSettings" id="LabelSettings_bt5o0"] font_size = 11 [sub_resource type="AudioStreamMicrophone" id="AudioStreamMicrophone_1rv7u"] [sub_resource type="AudioStreamGenerator" id="AudioStreamGenerator_a1tib"] [node name="MainScene" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="MarginContainer" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] layout_mode = 2 [node name="Label" type="Label" parent="MarginContainer/VBoxContainer"] custom_minimum_size = Vector2(400, 0) layout_mode = 2 text = "Your Client is Now sending your microphone input over the network to all other clients connected to the server." label_settings = SubResource("LabelSettings_jutwa") horizontal_alignment = 1 vertical_alignment = 1 autowrap_mode = 2 [node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer"] layout_mode = 2 [node name="Label2" type="Label" parent="MarginContainer/VBoxContainer"] custom_minimum_size = Vector2(400, 0) layout_mode = 2 text = "Note: I'm 99% sure this demo would get buggy with more than one client connected to the server since there is only one VoIP Playback. To solve this just spawn one per client." label_settings = SubResource("LabelSettings_bt5o0") horizontal_alignment = 1 vertical_alignment = 1 autowrap_mode = 2 [node name="MarginContainer2" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 0 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer2"] custom_minimum_size = Vector2(0, 50) layout_mode = 2 alignment = 1 [node name="LinkButton" type="LinkButton" parent="MarginContainer2/HBoxContainer"] layout_mode = 2 text = "YouTube" underline = 2 uri = "https://youtube.com/@4musedtv" [node name="Control2" type="Control" parent="MarginContainer2/HBoxContainer"] custom_minimum_size = Vector2(30, 0) layout_mode = 2 [node name="LinkButton2" type="LinkButton" parent="MarginContainer2/HBoxContainer"] layout_mode = 2 text = "Twitter" underline = 2 uri = "https://twitter.com/4musedWasTaken" [node name="Control" type="Control" parent="MarginContainer2/HBoxContainer"] custom_minimum_size = Vector2(30, 0) layout_mode = 2 [node name="LinkButton3" type="LinkButton" parent="MarginContainer2/HBoxContainer"] layout_mode = 2 text = "Twitch" underline = 2 uri = "https://twitch.tv/4musedtv" [node name="Microphone" type="AudioStreamPlayer" parent="."] stream = SubResource("AudioStreamMicrophone_1rv7u") autoplay = true bus = &"Mic" script = ExtResource("2_h65el") [node name="VoIP" type="AudioStreamPlayer" parent="."] stream = SubResource("AudioStreamGenerator_a1tib") autoplay = true