[gd_scene load_steps=4 format=3 uid="uid://dvjlkpjvjxn0h"] [ext_resource type="Script" path="res://MicRecord.gd" id="1"] [ext_resource type="AudioStream" uid="uid://c2re52petqrvx" path="res://Intro.ogg" id="2"] [sub_resource type="AudioStreamMicrophone" id="1"] [node name="MicRecord" type="Control"] layout_mode = 3 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -278.0 offset_top = -224.0 offset_right = 296.0 offset_bottom = 226.0 script = ExtResource("1") [node name="AudioStreamRecord" type="AudioStreamPlayer" parent="."] stream = SubResource("1") autoplay = true bus = &"Record" [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] autoplay = true [node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."] stream = ExtResource("2") volume_db = -6.0 [node name="Status" type="Label" parent="."] layout_mode = 1 anchors_preset = 10 anchor_right = 1.0 offset_bottom = 26.0 text = "Status: " horizontal_alignment = 1 [node name="RecordButton" type="Button" parent="."] layout_mode = 0 offset_left = 29.0 offset_top = 77.0 offset_right = 159.0 offset_bottom = 117.0 text = "Record" [node name="PlayButton" type="Button" parent="."] layout_mode = 0 offset_left = 209.0 offset_top = 77.0 offset_right = 339.0 offset_bottom = 117.0 disabled = true text = "Play" [node name="PlayMusic" type="Button" parent="."] layout_mode = 0 offset_left = 30.0 offset_top = 395.0 offset_right = 160.0 offset_bottom = 435.0 text = "Play Music" [node name="FormatLabel" type="Label" parent="."] layout_mode = 0 offset_left = 33.0 offset_top = 153.0 offset_right = 102.0 offset_bottom = 179.0 text = "Format:" [node name="FormatOptionButton" type="OptionButton" parent="."] layout_mode = 0 offset_left = 131.0 offset_top = 150.0 offset_right = 315.0 offset_bottom = 181.0 item_count = 3 selected = 1 popup/item_0/text = "8-bit Uncompressed" popup/item_0/id = 0 popup/item_1/text = "16-bit Uncompressed" popup/item_1/id = 1 popup/item_2/text = "IMA ADPCM Compression" popup/item_2/id = 2 [node name="MixRateLabel" type="Label" parent="."] layout_mode = 0 offset_left = 33.0 offset_top = 192.0 offset_right = 102.0 offset_bottom = 218.0 text = "Mix rate:" [node name="MixRateOptionButton" type="OptionButton" parent="."] layout_mode = 0 offset_left = 131.0 offset_top = 189.0 offset_right = 220.0 offset_bottom = 220.0 item_count = 6 selected = 4 popup/item_0/text = "11025 Hz" popup/item_0/id = 0 popup/item_1/text = "16000 Hz" popup/item_1/id = 1 popup/item_2/text = "22050 Hz" popup/item_2/id = 2 popup/item_3/text = "32000 Hz" popup/item_3/id = 3 popup/item_4/text = "44100 Hz" popup/item_4/id = 4 popup/item_5/text = "48000 Hz" popup/item_5/id = 5 [node name="StereoLabel" type="Label" parent="."] layout_mode = 0 offset_left = 33.0 offset_top = 233.0 offset_right = 102.0 offset_bottom = 259.0 text = "Stereo:" [node name="StereoCheckButton" type="CheckButton" parent="."] layout_mode = 0 offset_left = 126.0 offset_top = 233.0 offset_right = 170.0 offset_bottom = 264.0 button_pressed = true [node name="SaveButton" type="Button" parent="."] layout_mode = 0 offset_left = 29.0 offset_top = 284.0 offset_right = 159.0 offset_bottom = 324.0 disabled = true text = "Save WAV To:" [node name="Filename" type="LineEdit" parent="SaveButton"] layout_mode = 0 offset_left = 180.0 offset_right = 507.0 offset_bottom = 40.0 text = "user://record.wav" caret_blink = true [node name="OpenUserFolderButton" type="Button" parent="."] layout_mode = 1 offset_left = 209.0 offset_top = 334.0 offset_right = 372.0 offset_bottom = 374.0 text = "Open User Folder" [connection signal="pressed" from="RecordButton" to="." method="_on_RecordButton_pressed"] [connection signal="pressed" from="PlayButton" to="." method="_on_PlayButton_pressed"] [connection signal="pressed" from="PlayMusic" to="." method="_on_Play_Music_pressed"] [connection signal="item_selected" from="FormatOptionButton" to="." method="_on_FormatOptionButton_item_selected"] [connection signal="item_selected" from="MixRateOptionButton" to="." method="_on_MixRateOptionButton_item_selected"] [connection signal="toggled" from="StereoCheckButton" to="." method="_on_StereoCheckButton_toggled"] [connection signal="pressed" from="SaveButton" to="." method="_on_SaveButton_pressed"] [connection signal="pressed" from="OpenUserFolderButton" to="." method="_on_open_user_folder_button_pressed"]