it does not do what it's supposed to for some reason when easy_audio is turned off it sounds like it plays the audio 212 times, or with wrong effect parameters. but atleast now it doesnt crash
50 lines
2.2 KiB
Text
50 lines
2.2 KiB
Text
[gd_scene format=3 uid="uid://clr8dvbm56jn8"]
|
|
|
|
[ext_resource type="Script" uid="uid://dw22i7cf5ekjx" path="res://entities/usable/music_player.gd" id="1_johh1"]
|
|
[ext_resource type="PackedScene" uid="uid://cbpl3s326ok8d" path="res://entities/usable/button/button.tscn" id="1_t1vpp"]
|
|
[ext_resource type="Script" uid="uid://v7j6ovrub5cp" path="res://scenes/changable_sound_emitter.gd" id="3_johh1"]
|
|
[ext_resource type="AudioStream" uid="uid://b14wn4nntykxv" path="res://assets/sounds/music/Bach_ Toccata and Fugue in D Minor, BWV 565.mp3" id="3_rf3au"]
|
|
[ext_resource type="Script" uid="uid://y8x4svl5kej2" path="res://addons/spatial_audio_3d/spatial_audio_3d.gd" id="5_pd776"]
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_b5l5s"]
|
|
top_radius = 0.025390625
|
|
bottom_radius = 0.025390625
|
|
|
|
[sub_resource type="Curve" id="Curve_60a4j"]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="TubeTrailMesh" id="TubeTrailMesh_b5l5s"]
|
|
radius = 0.1
|
|
radial_steps = 14
|
|
section_length = 0.1
|
|
curve = SubResource("Curve_60a4j")
|
|
|
|
[node name="MusicPlayer" type="Node3D" unique_id=1866568806]
|
|
script = ExtResource("1_johh1")
|
|
|
|
[node name="Button" parent="." unique_id=1942355311 instance=ExtResource("1_t1vpp")]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=1565274282]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -0.08234948)
|
|
mesh = SubResource("CylinderMesh_b5l5s")
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="." unique_id=1532772581]
|
|
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, 1, 0, -1, -4.371139e-08, 0, 1.9501299, -0.08872458)
|
|
mesh = SubResource("TubeTrailMesh_b5l5s")
|
|
|
|
[node name="ChangableAudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." unique_id=2198078 groups=["sound_player"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.9425293, 0.23302945)
|
|
stream = ExtResource("3_rf3au")
|
|
script = ExtResource("3_johh1")
|
|
easy_audio = false
|
|
metadata/_custom_type_script = "uid://v7j6ovrub5cp"
|
|
|
|
[node name="SpatialAudio3D" type="AudioStreamPlayer3D" parent="." unique_id=384959870]
|
|
unique_name_in_owner = true
|
|
stream = ExtResource("3_rf3au")
|
|
script = ExtResource("5_pd776")
|
|
collision_mask = 17
|
|
debug = true
|
|
metadata/_custom_type_script = "uid://y8x4svl5kej2"
|