diff --git a/audio/sfx/test/Variant1.wav b/audio/sfx/test/Variant1.wav new file mode 100644 index 0000000..0806675 Binary files /dev/null and b/audio/sfx/test/Variant1.wav differ diff --git a/audio/sfx/test/Variant1.wav.import b/audio/sfx/test/Variant1.wav.import new file mode 100644 index 0000000..90b069c --- /dev/null +++ b/audio/sfx/test/Variant1.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bviyapfbqgaac" +path="res://.godot/imported/Variant1.wav-6babee6f26e614a29393563e4bcb04a7.sample" + +[deps] + +source_file="res://audio/sfx/test/Variant1.wav" +dest_files=["res://.godot/imported/Variant1.wav-6babee6f26e614a29393563e4bcb04a7.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/audio/sfx/test/Variant2.wav b/audio/sfx/test/Variant2.wav new file mode 100644 index 0000000..212b960 Binary files /dev/null and b/audio/sfx/test/Variant2.wav differ diff --git a/audio/sfx/test/Variant2.wav.import b/audio/sfx/test/Variant2.wav.import new file mode 100644 index 0000000..e072e64 --- /dev/null +++ b/audio/sfx/test/Variant2.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b5w7d4a1jj2e1" +path="res://.godot/imported/Variant2.wav-d4d89da7b3ecee57588d1af5c660aac7.sample" + +[deps] + +source_file="res://audio/sfx/test/Variant2.wav" +dest_files=["res://.godot/imported/Variant2.wav-d4d89da7b3ecee57588d1af5c660aac7.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/audio/sfx/test/Variant3.wav b/audio/sfx/test/Variant3.wav new file mode 100644 index 0000000..a2f45db Binary files /dev/null and b/audio/sfx/test/Variant3.wav differ diff --git a/audio/sfx/test/Variant3.wav.import b/audio/sfx/test/Variant3.wav.import new file mode 100644 index 0000000..38b3043 --- /dev/null +++ b/audio/sfx/test/Variant3.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cujq3507gplyq" +path="res://.godot/imported/Variant3.wav-bb3256040db60a75b3a1095aa0d746a9.sample" + +[deps] + +source_file="res://audio/sfx/test/Variant3.wav" +dest_files=["res://.godot/imported/Variant3.wav-bb3256040db60a75b3a1095aa0d746a9.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/audio/sfx/test/Variant4.wav b/audio/sfx/test/Variant4.wav new file mode 100644 index 0000000..0093e88 Binary files /dev/null and b/audio/sfx/test/Variant4.wav differ diff --git a/audio/sfx/test/Variant4.wav.import b/audio/sfx/test/Variant4.wav.import new file mode 100644 index 0000000..21d3c0d --- /dev/null +++ b/audio/sfx/test/Variant4.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c3ui5n1nd67r5" +path="res://.godot/imported/Variant4.wav-714adf4b560a6040fb401c3229face72.sample" + +[deps] + +source_file="res://audio/sfx/test/Variant4.wav" +dest_files=["res://.godot/imported/Variant4.wav-714adf4b560a6040fb401c3229face72.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/audio/sfx/test/Variant5.wav b/audio/sfx/test/Variant5.wav new file mode 100644 index 0000000..2b8a74b Binary files /dev/null and b/audio/sfx/test/Variant5.wav differ diff --git a/audio/sfx/test/Variant5.wav.import b/audio/sfx/test/Variant5.wav.import new file mode 100644 index 0000000..de3dc58 --- /dev/null +++ b/audio/sfx/test/Variant5.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://blqybxbdbamao" +path="res://.godot/imported/Variant5.wav-3596c2f121f8c0159a5f8878dac66b0f.sample" + +[deps] + +source_file="res://audio/sfx/test/Variant5.wav" +dest_files=["res://.godot/imported/Variant5.wav-3596c2f121f8c0159a5f8878dac66b0f.sample"] + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=false +edit/normalize=false +edit/loop_mode=0 +edit/loop_begin=0 +edit/loop_end=-1 +compress/mode=0 diff --git a/project.godot b/project.godot index 769de77..409c833 100644 --- a/project.godot +++ b/project.godot @@ -11,5 +11,6 @@ config_version=5 [application] config/name="Babushka" +run/main_scene="res://scenes/audio_test_scene.tscn" config/features=PackedStringArray("4.3", "Forward Plus") config/icon="res://icon.svg" diff --git a/scenes/audio_test_scene.tscn b/scenes/audio_test_scene.tscn new file mode 100644 index 0000000..0a2f98c --- /dev/null +++ b/scenes/audio_test_scene.tscn @@ -0,0 +1,41 @@ +[gd_scene load_steps=7 format=3 uid="uid://dwuwgb8cv7hcr"] + +[ext_resource type="AudioStream" uid="uid://bviyapfbqgaac" path="res://audio/sfx/test/Variant1.wav" id="1_lrjii"] +[ext_resource type="AudioStream" uid="uid://blqybxbdbamao" path="res://audio/sfx/test/Variant5.wav" id="1_otqyj"] +[ext_resource type="AudioStream" uid="uid://b5w7d4a1jj2e1" path="res://audio/sfx/test/Variant2.wav" id="2_nhc1o"] +[ext_resource type="AudioStream" uid="uid://cujq3507gplyq" path="res://audio/sfx/test/Variant3.wav" id="3_sqonn"] +[ext_resource type="AudioStream" uid="uid://c3ui5n1nd67r5" path="res://audio/sfx/test/Variant4.wav" id="4_a3hjs"] + +[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_nwh3n"] +random_pitch = 1.15 +streams_count = 5 +stream_0/stream = ExtResource("1_lrjii") +stream_1/stream = ExtResource("2_nhc1o") +stream_2/stream = ExtResource("3_sqonn") +stream_3/stream = ExtResource("4_a3hjs") +stream_4/stream = ExtResource("1_otqyj") + +[node name="Node2D" type="Node2D"] + +[node name="MultiRandom" type="Button" parent="."] +offset_left = 695.0 +offset_top = 216.0 +offset_right = 992.0 +offset_bottom = 383.0 +text = "Press to make random Sound" + +[node name="MultiRandomPlayer" type="AudioStreamPlayer" parent="MultiRandom"] +stream = SubResource("AudioStreamRandomizer_nwh3n") + +[node name="Single" type="Button" parent="."] +offset_left = 117.0 +offset_top = 202.0 +offset_right = 414.0 +offset_bottom = 369.0 +text = "Press to make single Sound" + +[node name="SinglePlayer" type="AudioStreamPlayer" parent="Single"] +stream = ExtResource("1_otqyj") + +[connection signal="pressed" from="MultiRandom" to="MultiRandom/MultiRandomPlayer" method="play"] +[connection signal="pressed" from="Single" to="Single/SinglePlayer" method="play"]