Skip to content

Commit 71a6617

Browse files
verb working
1 parent 9e09e6e commit 71a6617

10 files changed

+96
-53
lines changed

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from methods import print_error
88
from SCons.Script import *
99

1010
# libname = "EXTENSION-NAME"
11-
libname = "GDExtensionAudioS2" # new name, note that /demo/bin/example.gdextension needed to be changed
11+
libname = "DattorroVerb" # new name, note that /demo/bin/example.gdextension needed to be changed
1212
projectdir = "demo"
1313

1414
source_folder = "src/" # top level folder
387 KB
Binary file not shown.
Binary file not shown.

demo/bin/example.gdextension

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,52 @@ compatibility_minimum = "4.1"
55

66
[libraries]
77
; Relative paths ensure that our GDExtension can be placed anywhere in the project directory.
8-
macos.single.debug = "./macos/libEXTENSION-NAME.macos.template_debug.dylib"
9-
macos.double.debug = "./macos/libEXTENSION-NAME.macos.template_debug.double.dylib"
10-
macos.single.release = "./macos/libEXTENSION-NAME.macos.template_release.dylib"
11-
macos.double.release = "./macos/libEXTENSION-NAME.macos.template_debug.double.dylib"
12-
13-
ios.arm64.single.debug = "./ios/libEXTENSION-NAME.ios.template_debug.arm64.dylib"
14-
ios.arm64.double.debug = "./ios/libEXTENSION-NAME.ios.template_debug.arm64.double.dylib"
15-
ios.arm64.single.release = "./ios/libEXTENSION-NAME.ios.template_release.arm64.dylib"
16-
ios.arm64.double.release = "./ios/libEXTENSION-NAME.ios.template_release.arm64.double.dylib"
17-
18-
windows.x86_32.single.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_32.dll"
19-
windows.x86_32.double.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_32.double.dll"
20-
windows.x86_32.single.release = "./windows/EXTENSION-NAME.windows.template_release.x86_32.dll"
21-
windows.x86_32.double.release = "./windows/EXTENSION-NAME.windows.template_release.x86_32.double.dll"
22-
23-
windows.x86_64.single.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_64.dll"
24-
windows.x86_64.double.debug = "./windows/EXTENSION-NAME.windows.template_debug.x86_64.double.dll"
25-
windows.x86_64.single.release = "./windows/EXTENSION-NAME.windows.template_release.x86_64.dll"
26-
windows.x86_64.double.release = "./windows/EXTENSION-NAME.windows.template_release.x86_64.double.dll"
27-
28-
linux.x86_64.single.debug = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
29-
linux.x86_64.double.debug = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.double.so"
30-
linux.x86_64.single.release = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
31-
linux.x86_64.double.release = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.double.so"
32-
33-
linux.arm64.single.debug = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
34-
linux.arm64.double.debug = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.double.so"
35-
linux.arm64.single.release = "./linux/libEXTENSION-NAME.linux.template_release.arm64.so"
36-
linux.arm64.double.release = "./linux/libEXTENSION-NAME.linux.template_release.arm64.double.so"
37-
38-
linux.rv64.single.debug = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
39-
linux.rv64.double.debug = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.double.so"
40-
linux.rv64.single.release = "./linux/libEXTENSION-NAME.linux.template_release.rv64.so"
41-
linux.rv64.double.release = "./linux/libEXTENSION-NAME.linux.template_release.rv64.double.so"
42-
43-
android.x86_64.single.debug = "./android/libEXTENSION-NAME.android.template_debug.x86_64.so"
44-
android.x86_64.double.debug = "./android/libEXTENSION-NAME.android.template_debug.x86_64.double.so"
45-
android.x86_64.single.release = "./android/libEXTENSION-NAME.android.template_release.x86_64.so"
46-
android.x86_64.double.release = "./android/libEXTENSION-NAME.android.template_release.x86_64.double.so"
47-
48-
android.arm64.single.debug = "./android/libEXTENSION-NAME.android.template_debug.arm64.so"
49-
android.arm64.double.debug = "./android/libEXTENSION-NAME.android.template_debug.arm64.double.so"
50-
android.arm64.single.release = "./android/libEXTENSION-NAME.android.template_release.arm64.so"
51-
android.arm64.double.release = "./android/libEXTENSION-NAME.android.template_release.arm64.double.so"
52-
53-
web.wasm32.single.debug = "./web/libEXTENSION-NAME.web.template_debug.wasm32.nothreads.wasm"
54-
web.wasm32.double.debug = "./web/libEXTENSION-NAME.web.template_release.wasm32.double.nothreads.wasm"
55-
web.wasm32.single.release = "./web/libEXTENSION-NAME.web.template_release.wasm32.nothreads.wasm"
56-
web.wasm32.double.release = "./web/libEXTENSION-NAME.web.template_release.wasm32.double.nothreads.wasm"
8+
macos.single.debug = "./macos/libDattorroVerb.macos.template_debug.dylib"
9+
macos.double.debug = "./macos/libDattorroVerb.macos.template_debug.double.dylib"
10+
macos.single.release = "./macos/libDattorroVerb.macos.template_release.dylib"
11+
macos.double.release = "./macos/libDattorroVerb.macos.template_debug.double.dylib"
12+
13+
ios.arm64.single.debug = "./ios/libDattorroVerb.ios.template_debug.arm64.dylib"
14+
ios.arm64.double.debug = "./ios/libDattorroVerb.ios.template_debug.arm64.double.dylib"
15+
ios.arm64.single.release = "./ios/libDattorroVerb.ios.template_release.arm64.dylib"
16+
ios.arm64.double.release = "./ios/libDattorroVerb.ios.template_release.arm64.double.dylib"
17+
18+
windows.x86_32.single.debug = "./windows/DattorroVerb.windows.template_debug.x86_32.dll"
19+
windows.x86_32.double.debug = "./windows/DattorroVerb.windows.template_debug.x86_32.double.dll"
20+
windows.x86_32.single.release = "./windows/DattorroVerb.windows.template_release.x86_32.dll"
21+
windows.x86_32.double.release = "./windows/DattorroVerb.windows.template_release.x86_32.double.dll"
22+
23+
windows.x86_64.single.debug = "./windows/DattorroVerb.windows.template_debug.x86_64.dll"
24+
windows.x86_64.double.debug = "./windows/DattorroVerb.windows.template_debug.x86_64.double.dll"
25+
windows.x86_64.single.release = "./windows/DattorroVerb.windows.template_release.x86_64.dll"
26+
windows.x86_64.double.release = "./windows/DattorroVerb.windows.template_release.x86_64.double.dll"
27+
28+
linux.x86_64.single.debug = "./linux/libDattorroVerb.linux.template_debug.x86_64.so"
29+
linux.x86_64.double.debug = "./linux/libDattorroVerb.linux.template_debug.x86_64.double.so"
30+
linux.x86_64.single.release = "./linux/libDattorroVerb.linux.template_release.x86_64.so"
31+
linux.x86_64.double.release = "./linux/libDattorroVerb.linux.template_release.x86_64.double.so"
32+
33+
linux.arm64.single.debug = "./linux/libDattorroVerb.linux.template_debug.arm64.so"
34+
linux.arm64.double.debug = "./linux/libDattorroVerb.linux.template_debug.arm64.double.so"
35+
linux.arm64.single.release = "./linux/libDattorroVerb.linux.template_release.arm64.so"
36+
linux.arm64.double.release = "./linux/libDattorroVerb.linux.template_release.arm64.double.so"
37+
38+
linux.rv64.single.debug = "./linux/libDattorroVerb.linux.template_debug.rv64.so"
39+
linux.rv64.double.debug = "./linux/libDattorroVerb.linux.template_debug.rv64.double.so"
40+
linux.rv64.single.release = "./linux/libDattorroVerb.linux.template_release.rv64.so"
41+
linux.rv64.double.release = "./linux/libDattorroVerb.linux.template_release.rv64.double.so"
42+
43+
android.x86_64.single.debug = "./android/libDattorroVerb.android.template_debug.x86_64.so"
44+
android.x86_64.double.debug = "./android/libDattorroVerb.android.template_debug.x86_64.double.so"
45+
android.x86_64.single.release = "./android/libDattorroVerb.android.template_release.x86_64.so"
46+
android.x86_64.double.release = "./android/libDattorroVerb.android.template_release.x86_64.double.so"
47+
48+
android.arm64.single.debug = "./android/libDattorroVerb.android.template_debug.arm64.so"
49+
android.arm64.double.debug = "./android/libDattorroVerb.android.template_debug.arm64.double.so"
50+
android.arm64.single.release = "./android/libDattorroVerb.android.template_release.arm64.so"
51+
android.arm64.double.release = "./android/libDattorroVerb.android.template_release.arm64.double.so"
52+
53+
web.wasm32.single.debug = "./web/libDattorroVerb.web.template_debug.wasm32.nothreads.wasm"
54+
web.wasm32.double.debug = "./web/libDattorroVerb.web.template_release.wasm32.double.nothreads.wasm"
55+
web.wasm32.single.release = "./web/libDattorroVerb.web.template_release.wasm32.nothreads.wasm"
56+
web.wasm32.double.release = "./web/libDattorroVerb.web.template_release.wasm32.double.nothreads.wasm"

demo/dattorro_verb_test.tscn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[gd_scene load_steps=2 format=3 uid="uid://c42dtedn55yu3"]
2+
3+
[ext_resource type="AudioStream" uid="uid://cb1vscixiqd4f" path="res://sound/file_example_WAV_1MG.wav" id="1_6a81k"]
4+
5+
[node name="DattorroVerbTest" type="Node"]
6+
7+
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
8+
stream = ExtResource("1_6a81k")

demo/default_bus_layout.tres

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[gd_resource type="AudioBusLayout" load_steps=2 format=3 uid="uid://8r8qkp04qmo"]
2+
3+
[sub_resource type="AudioEffectDattorroVerb" id="AudioEffectDattorroVerb_j3pel"]
4+
resource_name = "DattorroVerb"
5+
6+
[resource]
7+
bus/0/effect/0/effect = SubResource("AudioEffectDattorroVerb_j3pel")
8+
bus/0/effect/0/enabled = true

demo/example.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ extends Node
22

33

44
func _ready() -> void:
5-
var example := ExampleClass.new()
6-
example.print_type(example)
5+
var example := ExampleClass.new()
6+
example.print_type(example)
1020 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[remap]
2+
3+
importer="wav"
4+
type="AudioStreamWAV"
5+
uid="uid://cb1vscixiqd4f"
6+
path="res://.godot/imported/file_example_WAV_1MG.wav-8b614c8b8f17a0e1c09433ac17a54cc4.sample"
7+
8+
[deps]
9+
10+
source_file="res://sound/file_example_WAV_1MG.wav"
11+
dest_files=["res://.godot/imported/file_example_WAV_1MG.wav-8b614c8b8f17a0e1c09433ac17a54cc4.sample"]
12+
13+
[params]
14+
15+
force/8_bit=false
16+
force/mono=false
17+
force/max_rate=false
18+
force/max_rate_hz=44100
19+
edit/trim=false
20+
edit/normalize=false
21+
edit/loop_mode=0
22+
edit/loop_begin=0
23+
edit/loop_end=-1
24+
compress/mode=2

src/register_types.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
#include "example_class.h"
99

10-
#include "dattorro_verb/dattorro_verb.h" // my hook to
10+
#include "dattorro_verb/dattorro_verb.h"
11+
12+
1113

1214
using namespace godot;
1315

@@ -18,6 +20,7 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level) {
1820

1921
GDREGISTER_CLASS(ExampleClass);
2022

23+
// DattorroVerb hook
2124
GDREGISTER_CLASS(AudioEffectDattorroVerbInstance);
2225
GDREGISTER_CLASS(AudioEffectDattorroVerb);
2326
}

0 commit comments

Comments
 (0)