Files
godot-demo-projects/audio/device_changer/Changer.tscn
2022-03-26 20:48:33 -05:00

52 lines
1.3 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://co1ys4ggr68mk"]
[ext_resource type="Script" path="res://Changer.gd" id="1"]
[ext_resource type="AudioStream" uid="uid://k0y5fyud50c1" path="res://Intro.ogg" id="2"]
[node name="Changer" type="Control"]
offset_right = 1023.0
offset_bottom = 598.0
script = ExtResource( "1" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ItemList" type="ItemList" parent="."]
offset_left = 57.0
offset_top = 33.0
offset_right = 960.0
offset_bottom = 228.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DeviceInfo" type="Label" parent="."]
offset_left = 321.0
offset_top = 248.0
offset_right = 660.0
offset_bottom = 284.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SetDevice" type="Button" parent="."]
offset_left = 425.723
offset_top = 309.733
offset_right = 556.723
offset_bottom = 354.733
text = "Set Device"
[node name="PlayAudio" type="Button" parent="."]
offset_left = 424.0
offset_top = 373.0
offset_right = 557.0
offset_bottom = 414.0
text = "Play Audio"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( "2" )
volume_db = -6.0
[connection signal="button_down" from="SetDevice" to="." method="_on_Button_button_down"]
[connection signal="button_down" from="PlayAudio" to="." method="_on_Play_Audio_button_down"]