mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Node2D.gd" type="Script" id=1]
|
|
[ext_resource path="res://Intro.ogg" type="AudioStream" id=2]
|
|
|
|
[sub_resource type="AudioStreamMicrophone" id=1]
|
|
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
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="RecordButton" type="Button" parent="."]
|
|
margin_left = 120.0
|
|
margin_top = 60.0
|
|
margin_bottom = 78.0
|
|
text = "Record"
|
|
|
|
[node name="SaveButton" type="Button" parent="."]
|
|
editor/display_folded = true
|
|
margin_left = 120.0
|
|
margin_top = 120.0
|
|
disabled = true
|
|
text = "Save Wav To:"
|
|
|
|
[node name="Filename" type="Label" parent="SaveButton"]
|
|
margin_left = 120.0
|
|
margin_right = 440.0
|
|
margin_bottom = 20.0
|
|
text = "user://record.wav"
|
|
|
|
[node name="PlayButton" type="Button" parent="."]
|
|
margin_left = 240.0
|
|
margin_top = 60.0
|
|
disabled = true
|
|
text = "Play"
|
|
|
|
[node name="PlayMusic" type="Button" parent="."]
|
|
margin_left = 120.0
|
|
margin_top = 180.0
|
|
text = "Play Music"
|
|
|
|
[connection signal="pressed" from="RecordButton" to="." method="_on_RecordButton_pressed"]
|
|
[connection signal="pressed" from="SaveButton" to="." method="_on_SaveButton_pressed"]
|
|
[connection signal="pressed" from="PlayButton" to="." method="_on_PlayButton_pressed"]
|
|
[connection signal="pressed" from="PlayMusic" to="." method="_on_Play_Music_pressed"]
|