Skip to content

Commit

Permalink
looper works!
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Feb 20, 2024
1 parent 5f41347 commit 6bec6e4
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/lv2/liblooper.so/looper.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"-1": {"Plugin": true, "AmplifierPlugin": true, "optionalFeature": "http://lv2plug.in/ns/lv2core#hardRTCapable", "port": "_:n62c4bb580b1c42edb579f4b1e2d6cc04b8", "project": "http://lv2plug.in/ns/lv2", "http://usefulinc.com/ns/doap#license": "http://opensource.org/licenses/isc", "http://usefulinc.com/ns/doap#name": "Looper Plugin", "pluginName": "Looper Plugin"}, "0": {"InputPort": true, "ControlPort": true, "default": "0.0", "index": 0, "maximum": 1, "minimum": 0, "name": "toggle_rec", "symbol": "toggle_rec"}, "1": {"InputPort": true, "ControlPort": true, "default": "0.0", "index": 1, "maximum": 1, "minimum": 0, "name": "Toggle Playback", "symbol": "toggle_play"}, "3": {"InputPort": true, "ControlPort": true, "default": "1.0", "index": 3, "maximum": 6, "minimum": 0, "name": "gain", "symbol": "gain"}, "4": {"InputPort": true, "ControlPort": true, "default": 1024, "index": 4, "maximum": 1048576, "minimum": 128, "name": "Buffer Size", "symbol": "buffer_size_control"}, "5": {"InputPort": true, "ControlPort": true, "default": 0, "index": 5, "maximum": 100, "minimum": 0, "name": "Trim Start", "symbol": "start"}, "6": {"InputPort": true, "ControlPort": true, "default": 100, "index": 6, "maximum": 100, "minimum": 0, "name": "Trim End", "symbol": "end"}, "7": {"AudioPort": true, "InputPort": true, "index": 7, "name": "In", "symbol": "input"}, "8": {"AudioPort": true, "OutputPort": true, "index": 8, "name": "Out", "symbol": "output"}}
{"-1": {"Plugin": true, "AmplifierPlugin": true, "optionalFeature": "http://lv2plug.in/ns/lv2core#hardRTCapable", "port": "_:n62c4bb580b1c42edb579f4b1e2d6cc04b8", "project": "http://lv2plug.in/ns/lv2", "http://usefulinc.com/ns/doap#license": "http://opensource.org/licenses/isc", "http://usefulinc.com/ns/doap#name": "Looper Plugin", "pluginName": "Looper"}, "0": {"InputPort": true, "ControlPort": true, "default": "0.0", "index": 0, "maximum": 1, "minimum": 0, "name": "Toggle Record", "symbol": "toggle_rec"}, "1": {"InputPort": true, "ControlPort": true, "default": "0.0", "index": 1, "maximum": 1, "minimum": 0, "name": "Toggle Playback", "symbol": "toggle_play"}, "3": {"InputPort": true, "ControlPort": true, "default": "1.0", "index": 3, "maximum": 6, "minimum": 0, "name": "gain", "symbol": "gain"}, "4": {"InputPort": true, "ControlPort": true, "default": 1024, "index": 4, "maximum": 1048576, "minimum": 128, "name": "Buffer Size", "symbol": "buffer_size_control"}, "5": {"InputPort": true, "ControlPort": true, "default": 0, "index": 5, "maximum": 100, "minimum": 0, "name": "Trim Start", "symbol": "start"}, "6": {"InputPort": true, "ControlPort": true, "default": 100, "index": 6, "maximum": 100, "minimum": 0, "name": "Trim End", "symbol": "end"}, "7": {"AudioPort": true, "InputPort": true, "index": 7, "name": "In", "symbol": "input"}, "8": {"AudioPort": true, "OutputPort": true, "index": 8, "name": "Out", "symbol": "output"}}
3 changes: 3 additions & 0 deletions app/src/main/cpp/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ void Plugin::load () {
else
LOGD("[LV2] Handle instantiated ok! Congratulations");

if (lv2Descriptor->activate) {
lv2Descriptor->activate(handle);
}

std::string json_ = getLV2JSON(lv2Descriptor -> URI);
json j = json::parse(json_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
if (string != null) {
Log.d(TAG, "onBindViewHolder: control name: " + string +
" -> " + string.equalsIgnoreCase("bypass"));
isBypass = string.equalsIgnoreCase("bypass");
isBypass = string.equalsIgnoreCase("bypass") || string.contains("oggle");
}

if (mainActivity.useTheme) {
Expand Down
Binary file modified app/src/main/jniLibs/arm64-v8a/liblooper.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/armeabi-v7a/liblooper.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/x86/liblooper.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/x86_64/liblooper.so
Binary file not shown.

0 comments on commit 6bec6e4

Please sign in to comment.